From 1e8163e283c09ed2b1df9c9b6be957e4ebbf5686 Mon Sep 17 00:00:00 2001 From: Muddasser Date: Thu, 25 Feb 2016 12:43:08 +0500 Subject: [PATCH] Test should wait for ajax calls to finish before checking the changes --- common/test/acceptance/pages/lms/instructor_dashboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/test/acceptance/pages/lms/instructor_dashboard.py b/common/test/acceptance/pages/lms/instructor_dashboard.py index b94ab914a0..e9bac24289 100644 --- a/common/test/acceptance/pages/lms/instructor_dashboard.py +++ b/common/test/acceptance/pages/lms/instructor_dashboard.py @@ -839,6 +839,7 @@ class SpecialExamsPageAllowanceSection(PageObject): self.q(css='input#user_info').fill(username) self.q(css="input#addNewAllowance").click() self.wait_for_element_absence("div.modal div.modal-header", "Popup should be hidden") + self.wait_for_ajax() class SpecialExamsPageAttemptsSection(PageObject):