From cf6d0aa9389e7c4552e7106d26a1a339e8c5521c Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 21 Oct 2018 19:15:11 -0400 Subject: [PATCH] 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 --- functional_tests/support/system.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/functional_tests/support/system.py b/functional_tests/support/system.py index 9da86b167..02a01ef5c 100644 --- a/functional_tests/support/system.py +++ b/functional_tests/support/system.py @@ -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)