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
df758d79
Commit
df758d79
authored
May 21, 2015
by
Christine Lytwynec
Committed by
Jesse Zoldak
May 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an explicit accessibility test TE-890
parent
947354fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
1 deletions
+38
-1
common/test/acceptance/accessibility/__init__.py
+0
-0
common/test/acceptance/accessibility/test_studio_library_axs.py
+37
-0
requirements/edx/github.txt
+1
-1
No files found.
common/test/acceptance/accessibility/__init__.py
0 → 100644
View file @
df758d79
common/test/acceptance/accessibility/test_studio_library_axs.py
0 → 100644
View file @
df758d79
"""
Accessibility tests for Studio Library pages.
Run just this test with:
SELENIUM_BROWSER=phantomjs paver test_bokchoy -d accessibility -t test_studio_library_axs.py
"""
from
..tests.studio.base_studio_test
import
StudioLibraryTest
from
..pages.studio.library
import
LibraryEditPage
class
StudioLibraryAxsTest
(
StudioLibraryTest
):
"""
Class to test Studio pages accessibility.
"""
def
test_lib_edit_page_axs
(
self
):
"""
Check accessibility of LibraryEditPage.
"""
lib_page
=
LibraryEditPage
(
self
.
browser
,
self
.
library_key
)
lib_page
.
visit
()
lib_page
.
wait_until_ready
()
report
=
lib_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 3 accessibility warnings.
self
.
assertEqual
(
3
,
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'
,
'Warning: AX_IMAGE_01'
,)),
msg
=
"Unexpected warning: {}"
.
format
(
warning
))
requirements/edx/github.txt
View file @
df758d79
...
...
@@ -34,7 +34,7 @@ git+https://github.com/hmarr/django-debug-toolbar-mongo.git@b0686a76f1ce3532088c
-e git+https://github.com/edx/codejail.git@6b17c33a89bef0ac510926b1d7fea2748b73aadd#egg=codejail
-e git+https://github.com/edx/js-test-tool.git@v0.1.6#egg=js_test_tool
-e git+https://github.com/edx/event-tracking.git@0.2.0#egg=event-tracking
-e git+https://github.com/edx/bok-choy.git@
v0.3.4
#egg=bok_choy
-e git+https://github.com/edx/bok-choy.git@
1c968796129f4d281e112804b889b6f369f52011
#egg=bok_choy
-e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash
-e git+https://github.com/edx/acid-block.git@e46f9cda8a03e121a00c7e347084d142d22ebfb7#egg=acid-xblock
-e git+https://github.com/edx/edx-ora2.git@release-2015-05-08T16.15#egg=edx-ora2
...
...
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