Test should wait for ajax calls to finish before checking the changes

This commit is contained in:
Muddasser
2016-02-25 12:43:08 +05:00
parent 0251e8e15a
commit 1e8163e283

View File

@@ -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):