diff --git a/common/test/acceptance/pages/lms/instructor_dashboard.py b/common/test/acceptance/pages/lms/instructor_dashboard.py index 1ed9b1d8ce..abb4715858 100644 --- a/common/test/acceptance/pages/lms/instructor_dashboard.py +++ b/common/test/acceptance/pages/lms/instructor_dashboard.py @@ -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 diff --git a/common/test/acceptance/tests/discussion/test_cohort_management.py b/common/test/acceptance/tests/discussion/test_cohort_management.py index 882fadd7f8..146c9ee586 100644 --- a/common/test/acceptance/tests/discussion/test_cohort_management.py +++ b/common/test/acceptance/tests/discussion/test_cohort_management.py @@ -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()