Upgrade axe-core and ignore newly introduced failures
This commit is contained in:
@@ -693,6 +693,7 @@ class CohortConfigurationTest(EventsTestMixin, UniqueCourseTest, CohortTestMixin
|
||||
self.cohort_management_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.cohort_management_page.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
@@ -229,6 +229,7 @@ class DiscussionHomePageTest(BaseDiscussionTestCase):
|
||||
'section', # TODO: AC-491
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region' # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -467,6 +468,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase, BaseDiscussionMixi
|
||||
'section', # TODO: AC-491
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
|
||||
@@ -476,6 +478,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase, BaseDiscussionMixi
|
||||
"ignore": [
|
||||
'section', # TODO: AC-491
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'region' # TODO: AC-932
|
||||
]
|
||||
})
|
||||
|
||||
@@ -540,6 +543,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase):
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'color-contrast', # Commented out for now because they reproducibly fail on Jenkins but not locally
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -551,6 +555,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase):
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'color-contrast', # Commented out for now because they reproducibly fail on Jenkins but not locally
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -845,6 +850,7 @@ class DiscussionResponseEditTest(BaseDiscussionTestCase):
|
||||
'section', # TODO: AC-491
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
page.visit()
|
||||
@@ -947,6 +953,7 @@ class DiscussionCommentEditTest(BaseDiscussionTestCase):
|
||||
'section', # TODO: AC-491
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -1392,6 +1399,7 @@ class DiscussionSearchAlertTest(UniqueCourseTest):
|
||||
'section', # TODO: AC-491
|
||||
'aria-required-children', # TODO: AC-534
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.page.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
@@ -550,6 +550,7 @@ class AccountSettingsA11yTest(AccountSettingsTestMixin, AcceptanceTest):
|
||||
self.account_settings_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.account_settings_page.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
@@ -598,6 +598,10 @@ class BookmarksA11yTests(BookmarksTestMixin):
|
||||
self.bookmarks_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'heading-order', # TODO: AC-933
|
||||
'landmark-no-duplicate-banner', # TODO: AC-934
|
||||
'landmark-one-main', # TODO: AC-944
|
||||
'region' # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.setup_test(num_chapters=11)
|
||||
|
||||
@@ -660,6 +660,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, AcceptanceTest):
|
||||
profile_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
profile_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -686,6 +687,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, AcceptanceTest):
|
||||
profile_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
profile_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -701,6 +703,8 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, AcceptanceTest):
|
||||
profile_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
'color-contrast' # AC-938
|
||||
]
|
||||
})
|
||||
profile_page.display_accomplishments()
|
||||
|
||||
@@ -533,6 +533,7 @@ class CourseWikiA11yTest(UniqueCourseTest):
|
||||
self.course_wiki_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.course_wiki_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -545,6 +546,7 @@ class CourseWikiA11yTest(UniqueCourseTest):
|
||||
self.course_wiki_edit_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.course_wiki_edit_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -558,6 +560,7 @@ class CourseWikiA11yTest(UniqueCourseTest):
|
||||
history_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
history_page.wait_for_page()
|
||||
@@ -572,6 +575,7 @@ class CourseWikiA11yTest(UniqueCourseTest):
|
||||
children_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
children_page.wait_for_page()
|
||||
|
||||
@@ -141,6 +141,8 @@ class CourseHomeA11yTest(CourseHomeBaseTest):
|
||||
course_home_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
'landmark-no-duplicate-banner', # TODO: AC-934
|
||||
]
|
||||
})
|
||||
course_home_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -155,6 +157,8 @@ class CourseHomeA11yTest(CourseHomeBaseTest):
|
||||
course_search_results_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
'landmark-no-duplicate-banner', # TODO: AC-934
|
||||
]
|
||||
})
|
||||
course_search_results_page.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
@@ -411,6 +411,10 @@ class LmsDashboardA11yTest(BaseLmsDashboardTestMultiple):
|
||||
self.dashboard_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'button-name', # TODO: AC-935
|
||||
'landmark-no-duplicate-banner', # TODO: AC-934
|
||||
'landmark-complementary-is-top-level', # TODO: AC-939
|
||||
'region' # TODO: AC-932
|
||||
]
|
||||
})
|
||||
course_listings = self.dashboard_page.get_courses()
|
||||
|
||||
@@ -80,6 +80,7 @@ class LMSInstructorDashboardA11yTest(BaseInstructorDashboardTest):
|
||||
self.instructor_dashboard_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.instructor_dashboard_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -115,6 +116,9 @@ class BulkEmailTest(BaseInstructorDashboardTest):
|
||||
self.send_email_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'button-name', # TODO: TNL-5830
|
||||
'aria-allowed-role', # TODO: AC-936
|
||||
'color-contrast', # TODO: AC-938
|
||||
'listitem' # TODO: AC-937
|
||||
]
|
||||
})
|
||||
self.send_email_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -232,7 +236,7 @@ class AutoEnrollmentWithCSVTest(BaseInstructorDashboardTest):
|
||||
Auto-enrollment with CSV accessibility tests
|
||||
"""
|
||||
self.auto_enroll_section.a11y_audit.config.set_scope([
|
||||
'#member-list-widget-template'
|
||||
'#membership-list-widget-tpl'
|
||||
])
|
||||
self.auto_enroll_section.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
@@ -1113,6 +1117,11 @@ class CertificatesTest(BaseInstructorDashboardTest):
|
||||
"""
|
||||
Certificates page accessibility tests
|
||||
"""
|
||||
self.certificates_section.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-hidden-focus' # TODO: AC-938
|
||||
]
|
||||
})
|
||||
self.certificates_section.a11y_audit.config.set_scope([
|
||||
'.certificates-wrapper'
|
||||
])
|
||||
@@ -1322,6 +1331,11 @@ class CertificateInvalidationTest(BaseInstructorDashboardTest):
|
||||
"""
|
||||
Certificate invalidation accessibility tests
|
||||
"""
|
||||
self.certificates_section.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-hidden-focus' # TODO: AC-938
|
||||
]
|
||||
})
|
||||
self.certificates_section.a11y_audit.config.set_scope([
|
||||
'.certificates-wrapper'
|
||||
])
|
||||
|
||||
@@ -426,6 +426,7 @@ class CourseWithContentGroupsTest(StaffViewTest):
|
||||
'color-contrast', # TODO: AC-559
|
||||
'link-href', # TODO: AC-559
|
||||
'section', # TODO: AC-559
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
course_page.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
@@ -173,7 +173,8 @@ class ProblemTypeA11yTestMixin(object):
|
||||
|
||||
# Set the scope to the problem container
|
||||
self.problem_page.a11y_audit.config.set_scope(
|
||||
include=['div#seq_content'])
|
||||
include=['div#seq_content']
|
||||
)
|
||||
|
||||
# Run the accessibility audit.
|
||||
self.problem_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -618,6 +619,7 @@ class AnnotationProblemTypeBase(ProblemTypeTestBase):
|
||||
self.problem_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'label', # TODO: AC-491
|
||||
'label-title-only', # TODO: AC-493
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
@@ -123,6 +123,7 @@ class ProgramListingPageA11yTest(ProgramPageBase):
|
||||
self.listing_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.auth(enroll=False)
|
||||
@@ -140,6 +141,8 @@ class ProgramListingPageA11yTest(ProgramPageBase):
|
||||
self.listing_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'landmark-complementary-is-top-level', # TODO: AC-939
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.auth()
|
||||
@@ -170,6 +173,8 @@ class ProgramDetailsPageA11yTest(ProgramPageBase):
|
||||
self.details_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'landmark-complementary-is-top-level', # TODO: AC-939
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.auth()
|
||||
|
||||
@@ -333,6 +333,7 @@ class SubsectionGradingPolicyA11yTest(SubsectionGradingPolicyBase):
|
||||
self.progress_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.progress_page.visit()
|
||||
@@ -420,6 +421,7 @@ class ProgressPageA11yTest(ProgressPageBaseTest):
|
||||
self.progress_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
]
|
||||
})
|
||||
self.progress_page.visit()
|
||||
|
||||
@@ -654,6 +654,10 @@ class StudioLibraryA11yTest(StudioLibraryTest):
|
||||
lib_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'link-href', # TODO: AC-590
|
||||
'duplicate-id-aria', # TODO: AC-940
|
||||
'heading-order', # TODO: AC-933
|
||||
'landmark-complementary-is-top-level', # TODO: AC-939
|
||||
'region' # TODO: AC-932
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
@@ -760,6 +760,10 @@ class StudioSettingsA11yTest(StudioCourseTest):
|
||||
self.settings_page.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'link-href', # TODO: AC-590
|
||||
'aria-allowed-role', # TODO: AC-936
|
||||
'landmark-complementary-is-top-level', # TODO: AC-939
|
||||
'radiogroup', # TODO: AC-941
|
||||
'region', # TODO: AC-932
|
||||
],
|
||||
})
|
||||
|
||||
@@ -819,6 +823,11 @@ class StudioSubsectionSettingsA11yTest(StudioCourseTest):
|
||||
self.course_outline.open_subsection_settings_dialog()
|
||||
self.course_outline.select_advanced_tab()
|
||||
|
||||
self.course_outline.a11y_audit.config.set_rules({
|
||||
"ignore": [
|
||||
'section', # TODO: AC-491
|
||||
],
|
||||
})
|
||||
# limit the scope of the audit to the special exams tab on the modal dialog
|
||||
self.course_outline.a11y_audit.config.set_scope(
|
||||
include=['section.edit-settings-timed-examination']
|
||||
|
||||
@@ -83,6 +83,7 @@ class TextbooksTest(StudioCourseTest):
|
||||
'ignore': [
|
||||
'section', # AC-503
|
||||
'aria-valid-attr', # TODO: LEARNER-6611 & LEARNER-6865
|
||||
'region', # TODO: AC-932
|
||||
],
|
||||
})
|
||||
self.textbook_view_page.a11y_audit.check_for_accessibility_errors()
|
||||
@@ -97,14 +98,21 @@ class TextbooksTest(StudioCourseTest):
|
||||
self.textbook_view_page.visit()
|
||||
|
||||
self.textbook_view_page.switch_to_pdf_frame(self)
|
||||
self.textbook_view_page.a11y_audit.config.set_scope({
|
||||
'exclude': [
|
||||
self.textbook_view_page.a11y_audit.config.set_scope(
|
||||
exclude=[
|
||||
'#viewer', # PDF viewer (vendor file)
|
||||
]
|
||||
})
|
||||
)
|
||||
self.textbook_view_page.a11y_audit.config.set_rules({
|
||||
'ignore': [
|
||||
'color-contrast', # will always fail because pdf.js converts pdf to divs with transparent text
|
||||
'html-has-lang', # TODO: AC-942
|
||||
'label-title-only', # TODO: AC-493
|
||||
'landmark-one-main', # TODO: AC-944
|
||||
'page-has-heading-one', # TODO: AC-945
|
||||
'region', # TODO: AC-932
|
||||
'link-href', # TODO: AC-559
|
||||
'skip-link', # TODO: AC-937
|
||||
'bypass' # Commented out for now because they reproducibly fail on Jenkins but not locally
|
||||
],
|
||||
})
|
||||
self.textbook_view_page.a11y_audit.check_for_accessibility_errors()
|
||||
|
||||
Reference in New Issue
Block a user