Commit d1661fa6 by JonahStanley

Refactored recently merged in tests

parent c37a9e3e
...@@ -233,7 +233,7 @@ def shows_captions(step, show_captions): ...@@ -233,7 +233,7 @@ def shows_captions(step, show_captions):
def save_button_disabled(step): def save_button_disabled(step):
button_css = '.action-save' button_css = '.action-save'
disabled = 'is-disabled' disabled = 'is-disabled'
assert world.css_find(button_css)[0].has_class(disabled) assert world.css_has_class(button_css, disabled)
def type_in_codemirror(index, text): def type_in_codemirror(index, text):
......
...@@ -104,8 +104,7 @@ def populate_course(step): ...@@ -104,8 +104,7 @@ def populate_course(step):
def changes_not_persisted(step): def changes_not_persisted(step):
reload_the_page(step) reload_the_page(step)
name_id = '#course-grading-assignment-name' name_id = '#course-grading-assignment-name'
ele = world.css_find(name_id)[0] assert(world.css_value(name_id) == 'Homework')
assert(ele.value == 'Homework')
@step(u'I see the assignment type "(.*)"$') @step(u'I see the assignment type "(.*)"$')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment