From adc46716b6049da6c7c3355e81fd6f17cf486d28 Mon Sep 17 00:00:00 2001 From: Will Daly Date: Tue, 15 Oct 2013 21:21:09 -0400 Subject: [PATCH] Wait for non-blank link in course-overview test --- cms/djangoapps/contentstore/features/course-overview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/features/course-overview.py b/cms/djangoapps/contentstore/features/course-overview.py index d4d87e6b2a..6890e39491 100644 --- a/cms/djangoapps/contentstore/features/course-overview.py +++ b/cms/djangoapps/contentstore/features/course-overview.py @@ -91,8 +91,7 @@ def i_expand_a_section(step): @step(u'I see the "([^"]*)" link$') def i_see_the_span_with_text(step, text): span_locator = '.toggle-button-sections span' - assert_true(world.is_css_present(span_locator)) - assert_equal(world.css_value(span_locator), text) + assert_true(world.css_has_value(span_locator, text)) assert_true(world.css_visible(span_locator))