From 9afa92b0755d10b8b373a8be0f7b2d6e1446291a Mon Sep 17 00:00:00 2001 From: Jeremy Bowman Date: Fri, 13 Apr 2018 14:38:33 -0400 Subject: [PATCH] TE-2515 Fix occasional help link test failures --- common/test/acceptance/tests/helpers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/test/acceptance/tests/helpers.py b/common/test/acceptance/tests/helpers.py index 69ed3acb67..99dc3b1c5b 100644 --- a/common/test/acceptance/tests/helpers.py +++ b/common/test/acceptance/tests/helpers.py @@ -427,9 +427,7 @@ def assert_opened_help_link_is_correct(test, url): url (str): url to verify. """ test.browser.switch_to_window(test.browser.window_handles[-1]) - WebDriverWait(test.browser, 10).until(lambda driver: driver.current_url != "about:blank") - # Assert that url in the browser is the same. - test.assertEqual(url, test.browser.current_url) + WebDriverWait(test.browser, 10).until(lambda driver: driver.current_url == url) # Check that the URL loads. Can't do this in the browser because it might # be loading a "Maze Found" missing content page. response = requests.get(url)