From 286fcece4adecb433f1cdcb01146b1de143752fb Mon Sep 17 00:00:00 2001 From: JonahStanley Date: Fri, 31 May 2013 15:33:56 -0400 Subject: [PATCH] Fixed issue of searching for text Now the step calls is_text_present and is_text_not_present with a wait time of 5 seconds so that the page can be properly refreshed/reloaded if needed. This also gets rid of an assert not --- common/djangoapps/terrain/steps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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$')