Refactored lms/coureware lettuce tests to use terrain helpers

for common ui manipulations
This commit is contained in:
Will Daly
2013-03-22 12:40:33 -04:00
parent 6dd86f7a97
commit 4528490fac
11 changed files with 50 additions and 28 deletions

View File

@@ -339,7 +339,7 @@ def assert_answer_mark(step, problem_type, correctness):
# At least one of the correct selectors should be present
for sel in selector_dict[problem_type]:
has_expected = world.browser.is_element_present_by_css(sel, wait_time=4)
has_expected = world.is_css_present(sel)
# As soon as we find the selector, break out of the loop
if has_expected:
@@ -366,7 +366,7 @@ def inputfield(problem_type, choice=None, input_num=1):
# If the input element doesn't exist, fail immediately
assert(world.browser.is_element_present_by_css(sel, wait_time=4))
assert world.is_css_present(sel)
# Retrieve the input element
return world.browser.find_by_css(sel)