Fixed most of the lms tests to work on firefox

This commit is contained in:
JonahStanley
2013-07-29 16:08:00 -04:00
parent a867676ebb
commit 7056c80319
2 changed files with 2 additions and 1 deletions

View File

@@ -8,4 +8,5 @@ def i_click_on_the_tab_and_check(step):
tab_text = tab_title['TabName']
title = tab_title['PageTitle']
world.click_link(tab_text)
world.wait_for(lambda _driver:title in world.browser.title)
assert(title in world.browser.title)

View File

@@ -226,7 +226,6 @@ def answer_problem(problem_type, correctness):
input_value = "8" if correctness == 'correct' else "5"
choice = "choiceinput_0bc" if correctness == 'correct' else "choiceinput_1bc"
world.css_check(inputfield(problem_type, choice=choice))
world.css_fill(
inputfield(
problem_type,
@@ -234,6 +233,7 @@ def answer_problem(problem_type, correctness):
),
input_value
)
world.css_check(inputfield(problem_type, choice=choice))
def problem_has_answer(problem_type, answer_class):