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
e613b7f4
Commit
e613b7f4
authored
May 25, 2016
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12556 from edx/diana/discussion-a11y
Add a11y tags on accessibility tests.
parents
5af72a0d
cbe91429
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
common/test/acceptance/tests/discussion/test_discussion.py
+6
-0
No files found.
common/test/acceptance/tests/discussion/test_discussion.py
View file @
e613b7f4
...
...
@@ -203,6 +203,7 @@ class DiscussionHomePageTest(UniqueCourseTest):
self
.
page
.
click_new_post_button
()
self
.
assertIsNotNone
(
self
.
page
.
new_post_form
)
@attr
(
'a11y'
)
def
test_page_accessibility
(
self
):
self
.
page
.
a11y_audit
.
config
.
set_rules
({
"ignore"
:
[
...
...
@@ -341,6 +342,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase):
# Verify that the focus is changed
self
.
thread_page_2
.
check_focus_is_set
(
selector
=
".discussion-article"
)
@attr
(
'a11y'
)
def
test_page_accessibility
(
self
):
self
.
thread_page_1
.
a11y_audit
.
config
.
set_rules
({
"ignore"
:
[
...
...
@@ -413,6 +415,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase):
self
.
assertTrue
(
page
.
_is_element_visible
(
'.response_response1 .action-vote'
))
self
.
assertFalse
(
page
.
_is_element_visible
(
'.response_response1 .display-vote'
))
@attr
(
'a11y'
)
def
test_page_accessibility
(
self
):
page
=
self
.
setup_openclosed_thread_page
()
page
.
a11y_audit
.
config
.
set_rules
({
...
...
@@ -709,6 +712,7 @@ class DiscussionResponseEditTest(BaseDiscussionTestCase):
page
.
endorse_response
(
'response_self_author'
)
page
.
endorse_response
(
'response_other_author'
)
@attr
(
'a11y'
)
def
test_page_accessibility
(
self
):
self
.
setup_user
()
self
.
setup_view
()
...
...
@@ -808,6 +812,7 @@ class DiscussionCommentEditTest(BaseDiscussionTestCase):
self
.
assertFalse
(
page
.
is_comment_editor_visible
(
"comment_self_author"
))
self
.
assertTrue
(
page
.
is_add_comment_visible
(
"response1"
))
@attr
(
'a11y'
)
def
test_page_accessibility
(
self
):
self
.
setup_user
()
self
.
setup_view
()
...
...
@@ -1185,6 +1190,7 @@ class DiscussionSearchAlertTest(UniqueCourseTest):
self
.
SEARCHED_USERNAME
)
.
wait_for_page
()
@attr
(
'a11y'
)
def
test_page_accessibility
(
self
):
self
.
page
.
a11y_audit
.
config
.
set_rules
({
'ignore'
:
[
...
...
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