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
d32355fb
Commit
d32355fb
authored
Jun 18, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make a11y test inherit from a base class
parent
2b63ddb5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
common/test/acceptance/accessibility/test_lms_dashboard_axs.py
+2
-2
common/test/acceptance/tests/lms/test_lms_dashboard.py
+7
-3
No files found.
common/test/acceptance/accessibility/test_lms_dashboard_axs.py
View file @
d32355fb
...
...
@@ -4,10 +4,10 @@ Accessibility tests for LMS dashboard page.
Run just this test with:
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_lms_dashboard_axs.py
"""
from
..tests.lms.test_lms_dashboard
import
LmsDashboardPage
Test
from
..tests.lms.test_lms_dashboard
import
BaseLmsDashboard
Test
class
LmsDashboardAxsTest
(
LmsDashboardPage
Test
):
class
LmsDashboardAxsTest
(
BaseLmsDashboard
Test
):
"""
Class to test lms student dashboard accessibility.
"""
...
...
common/test/acceptance/tests/lms/test_lms_dashboard.py
View file @
d32355fb
...
...
@@ -8,8 +8,8 @@ from ...pages.lms.auto_auth import AutoAuthPage
from
...pages.lms.dashboard
import
DashboardPage
class
LmsDashboardPage
Test
(
UniqueCourseTest
):
"""
Test suite for the LMS Student Dashboard page
"""
class
BaseLmsDashboard
Test
(
UniqueCourseTest
):
"""
Base test suite for the LMS Student Dashboard
"""
def
setUp
(
self
):
"""
...
...
@@ -17,7 +17,7 @@ class LmsDashboardPageTest(UniqueCourseTest):
"""
# Some parameters are provided by the parent setUp() routine, such as the following:
# self.course_id, self.course_info, self.unique_id
super
(
LmsDashboardPage
Test
,
self
)
.
setUp
()
super
(
BaseLmsDashboard
Test
,
self
)
.
setUp
()
# Load page objects for use by the tests
self
.
dashboard_page
=
DashboardPage
(
self
.
browser
)
...
...
@@ -47,6 +47,10 @@ class LmsDashboardPageTest(UniqueCourseTest):
# Navigate the authenticated, enrolled user to the dashboard page and get testing!
self
.
dashboard_page
.
visit
()
class
LmsDashboardPageTest
(
BaseLmsDashboardTest
):
""" Test suite for the LMS Student Dashboard page """
def
test_dashboard_course_listings
(
self
):
"""
Perform a general validation of the course listings section
...
...
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