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:
Joseph Nuthalapati 2018-07-26 22:32:05 +05:30 committed by James Valleroy
parent daef528576
commit 36f7322d08
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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))