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
35aed4bf
Commit
35aed4bf
authored
Jun 10, 2015
by
Ben Patterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for flaky behavior in cohort search tests. TNL-2362
parent
242b3736
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
common/test/acceptance/pages/lms/instructor_dashboard.py
+9
-4
No files found.
common/test/acceptance/pages/lms/instructor_dashboard.py
View file @
35aed4bf
...
...
@@ -299,6 +299,11 @@ class CohortManagementSection(PageObject):
textinput
.
send_keys
(
user
)
textinput
.
send_keys
(
","
)
self
.
q
(
css
=
self
.
_bounded_selector
(
"div.cohort-management-group-add .action-primary"
))
.
first
.
click
()
# Expect the confirmation message substring. (The full message will differ depending on 1 or >1 students added)
self
.
wait_for
(
lambda
:
"added to this cohort"
in
self
.
get_cohort_confirmation_messages
(
wait_for_messages
=
True
)[
0
],
"Student(s) added confirmation message."
)
def
get_cohort_student_input_field_value
(
self
):
"""
...
...
@@ -393,14 +398,14 @@ class CohortManagementSection(PageObject):
return
self
.
_get_messages
(
title_css
,
detail_css
,
wait_for_messages
=
wait_for_messages
)
def
_get_cohort_messages
(
self
,
type
):
def
_get_cohort_messages
(
self
,
type
,
wait_for_messages
=
False
):
"""
Returns array of messages related to manipulating cohorts directly through the UI for the given type.
"""
title_css
=
"div.cohort-management-group-add .cohort-"
+
type
+
" .message-title"
detail_css
=
"div.cohort-management-group-add .cohort-"
+
type
+
" .summary-item"
return
self
.
_get_messages
(
title_css
,
detail_css
)
return
self
.
_get_messages
(
title_css
,
detail_css
,
wait_for_messages
)
def
get_csv_messages
(
self
):
"""
...
...
@@ -428,12 +433,12 @@ class CohortManagementSection(PageObject):
messages
.
append
(
detail
.
text
)
return
messages
def
get_cohort_confirmation_messages
(
self
):
def
get_cohort_confirmation_messages
(
self
,
wait_for_messages
=
False
):
"""
Returns an array of messages present in the confirmation area of the cohort management UI.
The first entry in the array is the title. Any further entries are the details.
"""
return
self
.
_get_cohort_messages
(
"confirmations"
)
return
self
.
_get_cohort_messages
(
"confirmations"
,
wait_for_messages
)
def
get_cohort_error_messages
(
self
):
"""
...
...
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