Fixed two other tests

This commit is contained in:
Will Daly
2013-07-19 11:51:36 -04:00
parent 27d51b3453
commit 17daa2a023
2 changed files with 4 additions and 2 deletions

View File

@@ -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
)

View File

@@ -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)