functional_tests: When creating backup, scroll window to top

Ensures that the checkbox for selected app can be scrolled into view.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2018-10-21 19:15:11 -04:00
parent 92d128a4b3
commit cf6d0aa938
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -194,6 +194,8 @@ def backup_create(browser, app_name):
for app in browser.find_by_css('input[type=checkbox]'):
app.uncheck()
# ensure the checkbox is scrolled into view
browser.execute_script('window.scrollTo(0, 0)')
browser.find_by_value(app_name).first.check()
submit(browser)