Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-dashboard
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-analytics-dashboard
Commits
0cdcf18c
Commit
0cdcf18c
authored
Sep 30, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #357 from edx/clytwynec/a11y-tests
update a11y tests
parents
c4f999d9
1c8bab2f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
23 deletions
+9
-23
a11y_tests/test_course_enrollment_demographics_axs.py
+8
-22
requirements/test.txt
+1
-1
No files found.
a11y_tests/test_course_enrollment_demographics_axs.py
View file @
0cdcf18c
...
...
@@ -19,25 +19,11 @@ class CourseEnrollmentDemographicsAgeTests(CoursePageTestsMixin, WebAppTest):
self
.
login
()
self
.
page
.
visit
()
# Generate accessibillity report
report
=
self
.
page
.
do_axs_audit
()
# Check that there was one page reviewed in this report
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
)
)
# TODO: AN-6010
# TODO: AN-6011
self
.
page
.
a11y_audit
.
config
.
set_rules
({
"ignore"
:
[
'color-contrast'
],
})
# Check the page for accessibility errors
report
=
self
.
page
.
a11y_audit
.
check_for_accessibility_errors
()
requirements/test.txt
View file @
0cdcf18c
# Test dependencies go here.
-r base.txt
bok-choy>=0.
3.1
bok-choy>=0.
4.5
coverage==3.7.1
ddt==1.0.0
django-dynamic-fixture==1.8.1
...
...
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