From 17daa2a023616dc2e70e79083367684af27a660e Mon Sep 17 00:00:00 2001 From: Will Daly Date: Fri, 19 Jul 2013 11:51:36 -0400 Subject: [PATCH] Fixed two other tests --- cms/djangoapps/contentstore/features/discussion-editor.py | 3 ++- cms/djangoapps/contentstore/features/problem-editor.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/features/discussion-editor.py b/cms/djangoapps/contentstore/features/discussion-editor.py index 8e4becb62e..13927a7d89 100644 --- a/cms/djangoapps/contentstore/features/discussion-editor.py +++ b/cms/djangoapps/contentstore/features/discussion-editor.py @@ -9,7 +9,8 @@ def i_created_discussion_tag(step): world.create_component_instance( step, '.large-discussion-icon', 'discussion', - '.xmodule_DiscussionModule' + '.xmodule_DiscussionModule', + has_multiple_templates=False ) diff --git a/cms/djangoapps/contentstore/features/problem-editor.py b/cms/djangoapps/contentstore/features/problem-editor.py index 64b2ec9b5c..565a35f802 100644 --- a/cms/djangoapps/contentstore/features/problem-editor.py +++ b/cms/djangoapps/contentstore/features/problem-editor.py @@ -170,7 +170,8 @@ def edit_latex_source(step): @step('my change to the High Level Source is persisted') def high_level_source_persisted(step): def verify_text(driver): - return world.css_text('.problem') == 'hi' + css_sel = '.problem div>span' + return world.css_text(css_sel) == 'hi' world.wait_for(verify_text)