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
beb3c197
Commit
beb3c197
authored
Apr 11, 2016
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a11y test for the course home page.
parent
bf66cb76
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletions
+29
-1
common/test/acceptance/tests/lms/test_lms.py
+28
-0
lms/static/sass/course/_info.scss
+1
-1
No files found.
common/test/acceptance/tests/lms/test_lms.py
View file @
beb3c197
...
...
@@ -1298,3 +1298,31 @@ class LMSLanguageTest(UniqueCourseTest):
get_selected_option_text
(
language_selector
),
u'English'
)
@attr
(
'a11y'
)
class
CourseInfoA11yTest
(
UniqueCourseTest
):
"""Accessibility test for course home/info page."""
def
setUp
(
self
):
super
(
CourseInfoA11yTest
,
self
)
.
setUp
()
self
.
course_fixture
=
CourseFixture
(
self
.
course_info
[
'org'
],
self
.
course_info
[
'number'
],
self
.
course_info
[
'run'
],
self
.
course_info
[
'display_name'
]
)
self
.
course_fixture
.
add_update
(
CourseUpdateDesc
(
date
=
'January 29, 2014'
,
content
=
'Test course update1'
)
)
self
.
course_fixture
.
add_update
(
CourseUpdateDesc
(
date
=
'February 5th, 2014'
,
content
=
'Test course update2'
)
)
self
.
course_fixture
.
add_update
(
CourseUpdateDesc
(
date
=
'March 31st, 2014'
,
content
=
'Test course update3'
)
)
self
.
course_fixture
.
install
()
self
.
course_info_page
=
CourseInfoPage
(
self
.
browser
,
self
.
course_id
)
AutoAuthPage
(
self
.
browser
,
course_id
=
self
.
course_id
)
.
visit
()
def
test_course_home_a11y
(
self
):
self
.
course_info_page
.
visit
()
self
.
course_info_page
.
a11y_audit
.
check_for_accessibility_errors
()
lms/static/sass/course/_info.scss
View file @
beb3c197
...
...
@@ -16,7 +16,7 @@
}
.page-subtitle
{
color
:
$dark-gray
2
;
color
:
$dark-gray
1
;
font-size
:
14px
;
text-transform
:
none
;
}
...
...
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