diff --git a/common/djangoapps/terrain/steps.py b/common/djangoapps/terrain/steps.py index 6643dfbf3c..1d9e59cd72 100644 --- a/common/djangoapps/terrain/steps.py +++ b/common/djangoapps/terrain/steps.py @@ -132,9 +132,9 @@ def should_have_link_with_id_and_text(step, link_id, text): @step(r'should( not)? see "(.*)" (?:somewhere|anywhere) (?:in|on) (?:the|this) page') def should_see_in_the_page(step, doesnt_appear, text): if doesnt_appear: - assert world.browser.is_text_not_present(text) + assert world.browser.is_text_not_present(text, wait_time=5) else: - assert_in(text, world.css_text('body')) + assert world.browser.is_text_present(text, wait_time=5) @step('I am logged in$')