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
e9292fb5
Commit
e9292fb5
authored
Oct 06, 2014
by
Daniel Friedman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coverage for cohort view's `showSection` link
TNL-550
parent
1b03534b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
+30
-1
common/test/acceptance/pages/lms/instructor_dashboard.py
+16
-0
common/test/acceptance/tests/discussion/test_cohort_management.py
+14
-1
No files found.
common/test/acceptance/pages/lms/instructor_dashboard.py
View file @
e9292fb5
...
...
@@ -146,3 +146,19 @@ class MembershipPage(PageObject):
The first entry in the array is the title. Any further entries are the details.
"""
return
self
.
_get_cohort_messages
(
"errors"
)
def
select_data_download
(
self
):
"""
Click on the link to the Data Download Page.
"""
self
.
q
(
css
=
"a.link-cross-reference[data-section=data_download]"
)
.
first
.
click
()
class
DataDownloadPage
(
PageObject
):
"""
Data Download section of the Instructor dashboard.
"""
url
=
None
def
is_browser_on_page
(
self
):
return
self
.
q
(
css
=
'a[data-section=data_download].active-section'
)
.
present
common/test/acceptance/tests/discussion/test_cohort_management.py
View file @
e9292fb5
...
...
@@ -12,7 +12,7 @@ from .helpers import CohortTestMixin
from
..helpers
import
UniqueCourseTest
from
...fixtures.course
import
CourseFixture
from
...pages.lms.auto_auth
import
AutoAuthPage
from
...pages.lms.instructor_dashboard
import
InstructorDashboardPage
from
...pages.lms.instructor_dashboard
import
InstructorDashboardPage
,
DataDownloadPage
from
...pages.studio.settings_advanced
import
AdvancedSettingsPage
import
uuid
...
...
@@ -242,3 +242,16 @@ class CohortConfigurationTest(UniqueCourseTest, CohortTestMixin):
})
.
count
(),
1
)
def
test_link_to_data_download
(
self
):
"""
Scenario: a link is present from the cohort configuration in
the instructor dashboard to the Data Download section.
Given I have a course with a cohort defined
When I view the cohort in the LMS instructor dashboard
There is a link to take me to the Data Download section of the Instructor Dashboard.
"""
self
.
membership_page
.
select_data_download
()
data_download_page
=
DataDownloadPage
(
self
.
browser
)
data_download_page
.
wait_for_page
()
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