From b19acf693b1b428fdc3440fa3dd78cb5cf173ba4 Mon Sep 17 00:00:00 2001 From: Jay Zoldak Date: Thu, 22 May 2014 16:14:56 -0400 Subject: [PATCH] Add the needed wait for ajax statements to checklist acceptance test methods --- cms/djangoapps/contentstore/features/checklists.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cms/djangoapps/contentstore/features/checklists.py b/cms/djangoapps/contentstore/features/checklists.py index 0c04f5ea04..6053f7085f 100644 --- a/cms/djangoapps/contentstore/features/checklists.py +++ b/cms/djangoapps/contentstore/features/checklists.py @@ -13,6 +13,7 @@ def i_select_checklists(step): world.click_tools() link_css = 'li.nav-course-tools-checklists a' world.css_click(link_css) + world.wait_for_ajax_complete() @step('I have opened Checklists$') @@ -104,6 +105,7 @@ def verifyChecklist2Status(completed, total, percentage): def toggleTask(checklist, 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 @@ -121,3 +123,4 @@ def clickActionLink(checklist, task, actionText): world.wait_for(verify_action_link_text) world.css_click('#course-checklist' + str(checklist) + ' a', index=task) + world.wait_for_ajax_complete()