From 20ea28748bd7c96236906d3b55614eb486b3c6d5 Mon Sep 17 00:00:00 2001 From: Jay Zoldak Date: Thu, 19 Sep 2013 12:54:45 -0400 Subject: [PATCH] Speed up problems feature tests --- lms/djangoapps/courseware/features/problems_setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/courseware/features/problems_setup.py b/lms/djangoapps/courseware/features/problems_setup.py index 0253571b47..3b1b983fc3 100644 --- a/lms/djangoapps/courseware/features/problems_setup.py +++ b/lms/djangoapps/courseware/features/problems_setup.py @@ -144,7 +144,7 @@ PROBLEM_DICT = { ] }, 'correct': ['section.choicetextgroup_correct'], - 'incorrect': ['span.incorrect', 'section.choicetextgroup_incorrect'], + 'incorrect': ['section.choicetextgroup_incorrect', 'span.incorrect'], 'unanswered': ['span.unanswered']}, 'checkbox_text': { @@ -242,7 +242,7 @@ def answer_problem(problem_type, correctness): def problem_has_answer(problem_type, answer_class): if problem_type == "drop down": if answer_class == 'blank': - assert world.browser.is_element_not_present_by_css('option[selected="true"]') + assert world.is_css_not_present('option[selected="true"]') else: actual = world.browser.find_by_css('option[selected="true"]').value expected = 'Option 2' if answer_class == 'correct' else 'Option 3'