Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d32355fb
Commit
d32355fb
authored
9 years ago
by
Christine Lytwynec
Browse files
Options
Downloads
Patches
Plain Diff
Make a11y test inherit from a base class
parent
2b63ddb5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/test/acceptance/accessibility/test_lms_dashboard_axs.py
+2
-2
2 additions, 2 deletions
...n/test/acceptance/accessibility/test_lms_dashboard_axs.py
common/test/acceptance/tests/lms/test_lms_dashboard.py
+7
-3
7 additions, 3 deletions
common/test/acceptance/tests/lms/test_lms_dashboard.py
with
9 additions
and
5 deletions
common/test/acceptance/accessibility/test_lms_dashboard_axs.py
+
2
−
2
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
LmsDashboard
Page
Test
from
..tests.lms.test_lms_dashboard
import
Base
LmsDashboardTest
class
LmsDashboardAxsTest
(
LmsDashboard
Page
Test
):
class
LmsDashboardAxsTest
(
Base
LmsDashboardTest
):
"""
Class to test lms student dashboard accessibility.
"""
...
...
This diff is collapsed.
Click to expand it.
common/test/acceptance/tests/lms/test_lms_dashboard.py
+
7
−
3
View file @
d32355fb
...
...
@@ -8,8 +8,8 @@ from ...pages.lms.auto_auth import AutoAuthPage
from
...pages.lms.dashboard
import
DashboardPage
class
LmsDashboard
Page
Test
(
UniqueCourseTest
):
"""
T
est suite for the LMS Student Dashboard
page
"""
class
Base
LmsDashboardTest
(
UniqueCourseTest
):
"""
Base t
est 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
(
LmsDashboard
Page
Test
,
self
).
setUp
()
super
(
Base
LmsDashboardTest
,
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment