mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
shaarli: tests: functional: Specify setup form submission button
Tests: - Run shaarli functional tests Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
d645cfa35e
commit
133295238b
@ -3,9 +3,10 @@
|
||||
Functional, browser based tests for shaarli app.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
import time
|
||||
|
||||
import pytest
|
||||
|
||||
from plinth.tests import functional
|
||||
|
||||
pytestmark = [pytest.mark.apps, pytest.mark.shaarli]
|
||||
@ -37,7 +38,9 @@ class TestShaarliApp(functional.BaseAppTests):
|
||||
password_field = session_browser.find_by_id('password')
|
||||
password_field.fill(functional.config['DEFAULT']['password'])
|
||||
|
||||
functional.submit(session_browser)
|
||||
button = session_browser.find_by_css(
|
||||
'#installform input[type=submit]')[0]
|
||||
functional.submit(session_browser, element=button)
|
||||
|
||||
def _shaarli_login(self, session_browser):
|
||||
"""Login to shaarli."""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user