Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
beb3c197
Commit
beb3c197
authored
9 years ago
by
Peter Fogg
Browse files
Options
Downloads
Patches
Plain Diff
Add a11y test for the course home page.
parent
bf66cb76
No related branches found
Branches containing commit
Tags
release-2021-02-03-10.53
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/test/acceptance/tests/lms/test_lms.py
+28
-0
28 additions, 0 deletions
common/test/acceptance/tests/lms/test_lms.py
lms/static/sass/course/_info.scss
+1
-1
1 addition, 1 deletion
lms/static/sass/course/_info.scss
with
29 additions
and
1 deletion
common/test/acceptance/tests/lms/test_lms.py
+
28
−
0
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
()
This diff is collapsed.
Click to expand it.
lms/static/sass/course/_info.scss
+
1
−
1
View file @
beb3c197
...
...
@@ -16,7 +16,7 @@
}
.page-subtitle
{
color
:
$dark-gray
2
;
color
:
$dark-gray
1
;
font-size
:
14px
;
text-transform
:
none
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment