mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
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:
parent
92d128a4b3
commit
cf6d0aa938
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user