Skip to content
Snippets Groups Projects
Commit 7d0297f0 authored by Jay Zoldak's avatar Jay Zoldak
Browse files

Wait for ajax post after changing language

parent b993dfbd
No related branches found
No related tags found
No related merge requests found
......@@ -78,6 +78,10 @@ class DashboardPage(PageObject):
self.q(css='select[name="language"] option[value="{}"]'.format(code)).first.click()
self.q(css="#submit-lang").first.click()
# Clicking the submit-lang button does a jquery ajax post, so make sure that
# has completed before continuing on.
self.wait_for_ajax()
self._changed_lang_promise(code).fulfill()
def _changed_lang_promise(self, code):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment