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
1c8bab2f
Commit
1c8bab2f
authored
Sep 30, 2015
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update a11y tests
parent
c4f999d9
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 @
1c8bab2f
...
@@ -19,25 +19,11 @@ class CourseEnrollmentDemographicsAgeTests(CoursePageTestsMixin, WebAppTest):
...
@@ -19,25 +19,11 @@ class CourseEnrollmentDemographicsAgeTests(CoursePageTestsMixin, WebAppTest):
self
.
login
()
self
.
login
()
self
.
page
.
visit
()
self
.
page
.
visit
()
# Generate accessibillity report
# TODO: AN-6010
report
=
self
.
page
.
do_axs_audit
()
# TODO: AN-6011
self
.
page
.
a11y_audit
.
config
.
set_rules
({
# Check that there was one page reviewed in this report
"ignore"
:
[
'color-contrast'
],
self
.
assertEqual
(
1
,
len
(
report
))
})
result
=
report
[
0
]
# Check the page for accessibility errors
# Verify that this page has no accessibility errors.
report
=
self
.
page
.
a11y_audit
.
check_for_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
)
)
requirements/test.txt
View file @
1c8bab2f
# Test dependencies go here.
# Test dependencies go here.
-r base.txt
-r base.txt
bok-choy>=0.
3.1
bok-choy>=0.
4.5
coverage==3.7.1
coverage==3.7.1
ddt==1.0.0
ddt==1.0.0
django-dynamic-fixture==1.8.1
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