Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ac980460
Commit
ac980460
authored
Apr 22, 2014
by
Jay Zoldak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3428 from edx/zoldak/fix-lang-test
Wait for ajax post after changing language
parents
7c890550
7d0297f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
common/test/acceptance/pages/lms/dashboard.py
+4
-0
No files found.
common/test/acceptance/pages/lms/dashboard.py
View file @
ac980460
...
@@ -78,6 +78,10 @@ class DashboardPage(PageObject):
...
@@ -78,6 +78,10 @@ class DashboardPage(PageObject):
self
.
q
(
css
=
'select[name="language"] option[value="{}"]'
.
format
(
code
))
.
first
.
click
()
self
.
q
(
css
=
'select[name="language"] option[value="{}"]'
.
format
(
code
))
.
first
.
click
()
self
.
q
(
css
=
"#submit-lang"
)
.
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
()
self
.
_changed_lang_promise
(
code
)
.
fulfill
()
def
_changed_lang_promise
(
self
,
code
):
def
_changed_lang_promise
(
self
,
code
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment