Commit ac980460 by Jay Zoldak

Merge pull request #3428 from edx/zoldak/fix-lang-test

Wait for ajax post after changing language
parents 7c890550 7d0297f0
......@@ -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):
......
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