mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
functional_tests: Use body instead of html for state change check
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
daef528576
commit
36f7322d08
1 file changed
+1
-1
@@ -61,7 +61,7 @@ def eventually(function, args=[], timeout=30):
|
||||
|
||||
@contextmanager
|
||||
def wait_for_page_update(browser, timeout=300):
|
||||
current_page = browser.find_by_tag('html').first
|
||||
current_page = browser.find_by_tag('body').first
|
||||
yield
|
||||
WebDriverWait(browser, timeout).until(is_stale(current_page))
|
||||
|
||||
|
||||
Reference in new issue
Block a user