mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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:
parent
daef528576
commit
36f7322d08
@ -61,7 +61,7 @@ def eventually(function, args=[], timeout=30):
|
|||||||
|
|
||||||
@contextmanager
|
@contextmanager
|
||||||
def wait_for_page_update(browser, timeout=300):
|
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
|
yield
|
||||||
WebDriverWait(browser, timeout).until(is_stale(current_page))
|
WebDriverWait(browser, timeout).until(is_stale(current_page))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user