From 12bae4b7a334ec1ac7470c8f2baf1f0b4701f52b Mon Sep 17 00:00:00 2001 From: Will Daly Date: Tue, 12 Nov 2013 16:45:08 -0500 Subject: [PATCH] Fixed intermittent issue with course date acceptance test --- cms/djangoapps/contentstore/features/course-settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/features/course-settings.py b/cms/djangoapps/contentstore/features/course-settings.py index f92df428ef..5864539ddd 100644 --- a/cms/djangoapps/contentstore/features/course-settings.py +++ b/cms/djangoapps/contentstore/features/course-settings.py @@ -179,7 +179,9 @@ def verify_date_or_time(css, date_or_time): """ Verifies date or time field. """ - assert_equal(date_or_time, world.css_value(css)) + # We need to wait for JavaScript to fill in the field, so we use + # css_has_value(), which first checks that the field is not blank + assert_true(world.css_has_value(css, date_or_time)) @step('I do not see the changes')