Commit b56e12ff by Jay Zoldak

Merge pull request #3843 from edx/zoldak/fix-brittle-checklist-acceptance-tests

Add the needed wait for ajax statements to checklist acceptance test methods
parents 6844575e b19acf69
...@@ -13,6 +13,7 @@ def i_select_checklists(step): ...@@ -13,6 +13,7 @@ def i_select_checklists(step):
world.click_tools() world.click_tools()
link_css = 'li.nav-course-tools-checklists a' link_css = 'li.nav-course-tools-checklists a'
world.css_click(link_css) world.css_click(link_css)
world.wait_for_ajax_complete()
@step('I have opened Checklists$') @step('I have opened Checklists$')
...@@ -104,6 +105,7 @@ def verifyChecklist2Status(completed, total, percentage): ...@@ -104,6 +105,7 @@ def verifyChecklist2Status(completed, total, percentage):
def toggleTask(checklist, task): def toggleTask(checklist, task):
world.css_click('#course-checklist' + str(checklist) + '-task' + str(task)) world.css_click('#course-checklist' + str(checklist) + '-task' + str(task))
world.wait_for_ajax_complete()
# TODO: figure out a way to do this in phantom and firefox # TODO: figure out a way to do this in phantom and firefox
...@@ -121,3 +123,4 @@ def clickActionLink(checklist, task, actionText): ...@@ -121,3 +123,4 @@ def clickActionLink(checklist, task, actionText):
world.wait_for(verify_action_link_text) world.wait_for(verify_action_link_text)
world.css_click('#course-checklist' + str(checklist) + ' a', index=task) world.css_click('#course-checklist' + str(checklist) + ' a', index=task)
world.wait_for_ajax_complete()
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