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
83cadc5f
Commit
83cadc5f
authored
May 29, 2015
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a11y test for lms student dashboard
parent
c3b78ea9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
common/test/acceptance/accessibility/test_lms_dashboard_axs.py
+36
-0
No files found.
common/test/acceptance/accessibility/test_lms_dashboard_axs.py
0 → 100644
View file @
83cadc5f
"""
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
LmsDashboardPageTest
class
LmsDashboardAxsTest
(
LmsDashboardPageTest
):
"""
Class to test lms student dashboard accessibility.
"""
def
test_dashboard_course_listings_axs
(
self
):
"""
Test the accessibility of the course listings
"""
course_listings
=
self
.
dashboard_page
.
get_course_listings
()
self
.
assertEqual
(
len
(
course_listings
),
1
)
report
=
self
.
dashboard_page
.
do_axs_audit
()
# There was one page in this session
self
.
assertEqual
(
1
,
len
(
report
))
result
=
report
[
0
]
# Verify that this page has no accessibility errors.
self
.
assertEqual
(
0
,
len
(
result
.
errors
))
# Verify that this page currently has 2 accessibility warnings.
self
.
assertEqual
(
2
,
len
(
result
.
warnings
))
# And that these are the warnings that the page currently gives.
for
warning
in
result
.
warnings
:
self
.
assertTrue
(
warning
.
startswith
((
'Warning: AX_FOCUS_01'
,
'Warning: AX_COLOR_01'
,)),
msg
=
"Unexpected warning: {}"
.
format
(
warning
))
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