mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
functional_tests: Make coquelicot password entry more robust
Ensure the password form is scrolled into view. Fixes #1386. Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
a7b4039b63
commit
6bf2b88874
@ -53,6 +53,8 @@ def access_url(browser, site_name):
|
|||||||
|
|
||||||
def verify_coquelicot_upload_password(browser, password):
|
def verify_coquelicot_upload_password(browser, password):
|
||||||
browser.visit(config['DEFAULT']['url'] + '/coquelicot')
|
browser.visit(config['DEFAULT']['url'] + '/coquelicot')
|
||||||
|
# ensure the password form is scrolled into view
|
||||||
|
browser.execute_script('window.scrollTo(100, 0)')
|
||||||
browser.find_by_id('upload_password').fill(password)
|
browser.find_by_id('upload_password').fill(password)
|
||||||
actions = ActionChains(browser.driver)
|
actions = ActionChains(browser.driver)
|
||||||
actions.send_keys(Keys.RETURN)
|
actions.send_keys(Keys.RETURN)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user