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 authored and James Valleroy committed 2018-07-29 12:23:02 -04:00
1 parent daef528576
commit 36f7322d08
1 file changed
+1 -1
+1 -1
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))