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:
James Valleroy 2018-10-03 18:57:09 -04:00
parent a7b4039b63
commit 6bf2b88874
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -53,6 +53,8 @@ def access_url(browser, site_name):
def verify_coquelicot_upload_password(browser, password):
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)
actions = ActionChains(browser.driver)
actions.send_keys(Keys.RETURN)