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
e9530447
Commit
e9530447
authored
May 09, 2016
by
Christina Roberts
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12388 from edx/christina/course-search-cohort-test
Fix flaky cohort tests
parents
40c74c3a
7ff3c4b3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
common/test/acceptance/pages/lms/instructor_dashboard.py
+8
-0
No files found.
common/test/acceptance/pages/lms/instructor_dashboard.py
View file @
e9530447
...
...
@@ -315,6 +315,14 @@ class CohortManagementSection(PageObject):
# There are 2 create buttons on the page. The second one is only present when no cohort yet exists
# (in which case the first is not visible). Click on the last present create button.
create_buttons
.
results
[
len
(
create_buttons
.
results
)
-
1
]
.
click
()
# Both the edit and create forms have an element with id="cohort-name". Verify that the create form
# has been rendered.
self
.
wait_for
(
lambda
:
"Add a New Cohort"
in
self
.
q
(
css
=
self
.
_bounded_selector
(
".form-title"
))
.
text
,
"Create cohort form is visible"
)
textinput
=
self
.
q
(
css
=
self
.
_bounded_selector
(
"#cohort-name"
))
.
results
[
0
]
textinput
.
send_keys
(
cohort_name
)
...
...
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