Commit 6be4f84a by Chris Rodriguez

Using latest version from NPM and ignoring section tests for now

parent 920fba50
...@@ -208,6 +208,7 @@ class DiscussionHomePageTest(UniqueCourseTest): ...@@ -208,6 +208,7 @@ class DiscussionHomePageTest(UniqueCourseTest):
def test_page_accessibility(self): def test_page_accessibility(self):
self.page.a11y_audit.config.set_rules({ self.page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'section', # TODO: wcag2aa
'color-contrast', # TNL-4635 'color-contrast', # TNL-4635
'link-href', # TNL-4636 'link-href', # TNL-4636
'icon-aria-hidden', # TNL-4637 'icon-aria-hidden', # TNL-4637
...@@ -347,6 +348,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase): ...@@ -347,6 +348,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase):
def test_page_accessibility(self): def test_page_accessibility(self):
self.thread_page_1.a11y_audit.config.set_rules({ self.thread_page_1.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'section', # TODO: wcag2aa
'aria-valid-attr-value', # TNL-4638 'aria-valid-attr-value', # TNL-4638
'color-contrast', # TNL-4639 'color-contrast', # TNL-4639
'link-href', # TNL-4640 'link-href', # TNL-4640
...@@ -358,6 +360,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase): ...@@ -358,6 +360,7 @@ class DiscussionTabMultipleThreadTest(BaseDiscussionTestCase):
self.thread_page_2.a11y_audit.config.set_rules({ self.thread_page_2.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'section', # TODO: wcag2aa
'aria-valid-attr-value', # TNL-4638 'aria-valid-attr-value', # TNL-4638
'color-contrast', # TNL-4639 'color-contrast', # TNL-4639
'link-href', # TNL-4640 'link-href', # TNL-4640
...@@ -421,6 +424,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase): ...@@ -421,6 +424,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase):
page = self.setup_openclosed_thread_page() page = self.setup_openclosed_thread_page()
page.a11y_audit.config.set_rules({ page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-valid-attr-value', # TNL-4643 'aria-valid-attr-value', # TNL-4643
'color-contrast', # TNL-4644 'color-contrast', # TNL-4644
'link-href', # TNL-4640 'link-href', # TNL-4640
...@@ -432,6 +436,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase): ...@@ -432,6 +436,7 @@ class DiscussionOpenClosedThreadTest(BaseDiscussionTestCase):
page = self.setup_openclosed_thread_page(True) page = self.setup_openclosed_thread_page(True)
page.a11y_audit.config.set_rules({ page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-valid-attr-value', # TNL-4643 'aria-valid-attr-value', # TNL-4643
'color-contrast', # TNL-4644 'color-contrast', # TNL-4644
'link-href', # TNL-4640 'link-href', # TNL-4640
...@@ -720,6 +725,7 @@ class DiscussionResponseEditTest(BaseDiscussionTestCase): ...@@ -720,6 +725,7 @@ class DiscussionResponseEditTest(BaseDiscussionTestCase):
page = self.create_single_thread_page("response_edit_test_thread") page = self.create_single_thread_page("response_edit_test_thread")
page.a11y_audit.config.set_rules({ page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-valid-attr-value', # TNL-4638 'aria-valid-attr-value', # TNL-4638
'color-contrast', # TNL-4644 'color-contrast', # TNL-4644
'link-href', # TNL-4640 'link-href', # TNL-4640
...@@ -821,6 +827,7 @@ class DiscussionCommentEditTest(BaseDiscussionTestCase): ...@@ -821,6 +827,7 @@ class DiscussionCommentEditTest(BaseDiscussionTestCase):
page.visit() page.visit()
page.a11y_audit.config.set_rules({ page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-valid-attr-value', # TNL-4643 'aria-valid-attr-value', # TNL-4643
'color-contrast', # TNL-4644 'color-contrast', # TNL-4644
'link-href', # TNL-4640 'link-href', # TNL-4640
...@@ -1195,6 +1202,7 @@ class DiscussionSearchAlertTest(UniqueCourseTest): ...@@ -1195,6 +1202,7 @@ class DiscussionSearchAlertTest(UniqueCourseTest):
def test_page_accessibility(self): def test_page_accessibility(self):
self.page.a11y_audit.config.set_rules({ self.page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'color-contrast', # TNL-4639 'color-contrast', # TNL-4639
'link-href', # TNL-4640 'link-href', # TNL-4640
'icon-aria-hidden', # TNL-4641 'icon-aria-hidden', # TNL-4641
......
...@@ -459,6 +459,7 @@ class AccountSettingsA11yTest(AccountSettingsTestMixin, WebAppTest): ...@@ -459,6 +459,7 @@ class AccountSettingsA11yTest(AccountSettingsTestMixin, WebAppTest):
self.visit_account_settings_page() self.visit_account_settings_page()
self.account_settings_page.a11y_audit.config.set_rules({ self.account_settings_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'link-href', # TODO: AC-233 'link-href', # TODO: AC-233
], ],
}) })
......
...@@ -778,7 +778,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest): ...@@ -778,7 +778,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest):
profile_page.a11y_audit.config.set_rules({ profile_page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'skip-link', # TODO: AC-179 'section', # TODO: wcag2aa
'link-href', # TODO: AC-231 'link-href', # TODO: AC-231
], ],
}) })
...@@ -806,6 +806,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest): ...@@ -806,6 +806,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest):
profile_page.a11y_audit.config.set_rules({ profile_page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'section', # TODO: wcag2aa
'link-href', # TODO: AC-231 'link-href', # TODO: AC-231
], ],
}) })
...@@ -822,7 +823,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest): ...@@ -822,7 +823,7 @@ class LearnerProfileA11yTest(LearnerProfileTestMixin, WebAppTest):
profile_page.a11y_audit.config.set_rules({ profile_page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'skip-link', # TODO: AC-179 'section', # TODO: wcag2aa
'link-href', # TODO: AC-231 'link-href', # TODO: AC-231
], ],
}) })
......
...@@ -1347,4 +1347,9 @@ class CourseInfoA11yTest(UniqueCourseTest): ...@@ -1347,4 +1347,9 @@ class CourseInfoA11yTest(UniqueCourseTest):
def test_course_home_a11y(self): def test_course_home_a11y(self):
self.course_info_page.visit() self.course_info_page.visit()
self.course_info_page.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.course_info_page.a11y_audit.check_for_accessibility_errors() self.course_info_page.a11y_audit.check_for_accessibility_errors()
...@@ -619,6 +619,11 @@ class CoursewareMultipleVerticalsTest(UniqueCourseTest, EventsTestMixin): ...@@ -619,6 +619,11 @@ class CoursewareMultipleVerticalsTest(UniqueCourseTest, EventsTestMixin):
# Set the scope to the sequence navigation # Set the scope to the sequence navigation
self.courseware_page.a11y_audit.config.set_scope( self.courseware_page.a11y_audit.config.set_scope(
include=['div.sequence-nav']) include=['div.sequence-nav'])
self.courseware_page.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
],
})
self.courseware_page.a11y_audit.check_for_accessibility_errors() self.courseware_page.a11y_audit.check_for_accessibility_errors()
......
...@@ -232,4 +232,9 @@ class LmsDashboardA11yTest(BaseLmsDashboardTest): ...@@ -232,4 +232,9 @@ class LmsDashboardA11yTest(BaseLmsDashboardTest):
""" """
course_listings = self.dashboard_page.get_course_listings() course_listings = self.dashboard_page.get_course_listings()
self.assertEqual(len(course_listings), 1) self.assertEqual(len(course_listings), 1)
self.dashboard_page.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.dashboard_page.a11y_audit.check_for_accessibility_errors() self.dashboard_page.a11y_audit.check_for_accessibility_errors()
...@@ -245,6 +245,19 @@ class ProblemTypeTestMixin(object): ...@@ -245,6 +245,19 @@ class ProblemTypeTestMixin(object):
self.problem_page.a11y_audit.config.set_scope( self.problem_page.a11y_audit.config.set_scope(
include=['div#seq_content']) include=['div#seq_content'])
self.problem_page.a11y_audit.config.set_rules({
"ignore": [
'aria-allowed-attr', # TODO: wcag2aa
'aria-valid-attr', # TODO: wcag2aa
'aria-roles', # TODO: wcag2aa
'checkboxgroup', # TODO: wcag2aa
'radiogroup', # TODO: wcag2aa
'color-contrast', # TODO: wcag2aa
'section', # TODO: wcag2aa
'label', # TODO: wcag2aa
]
})
# Run the accessibility audit. # Run the accessibility audit.
self.problem_page.a11y_audit.check_for_accessibility_errors() self.problem_page.a11y_audit.check_for_accessibility_errors()
...@@ -285,11 +298,6 @@ class AnnotationProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -285,11 +298,6 @@ class AnnotationProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
Additional setup for AnnotationProblemTypeTest Additional setup for AnnotationProblemTypeTest
""" """
super(AnnotationProblemTypeTest, self).setUp(*args, **kwargs) super(AnnotationProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({
'ignore': [
'label', # TODO: AC-293
]
})
def answer_problem(self, correct): def answer_problem(self, correct):
""" """
...@@ -327,6 +335,7 @@ class CheckboxProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -327,6 +335,7 @@ class CheckboxProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(CheckboxProblemTypeTest, self).setUp(*args, **kwargs) super(CheckboxProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-allowed-attr', # TODO: AC-251 'aria-allowed-attr', # TODO: AC-251
'aria-valid-attr', # TODO: AC-251 'aria-valid-attr', # TODO: AC-251
'aria-roles', # TODO: AC-251 'aria-roles', # TODO: AC-251
...@@ -372,6 +381,7 @@ class MultipleChoiceProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -372,6 +381,7 @@ class MultipleChoiceProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(MultipleChoiceProblemTypeTest, self).setUp(*args, **kwargs) super(MultipleChoiceProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-valid-attr', # TODO: AC-251 'aria-valid-attr', # TODO: AC-251
'radiogroup', # TODO: AC-251 'radiogroup', # TODO: AC-251
] ]
...@@ -415,6 +425,7 @@ class RadioProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -415,6 +425,7 @@ class RadioProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(RadioProblemTypeTest, self).setUp(*args, **kwargs) super(RadioProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'aria-valid-attr', # TODO: AC-292 'aria-valid-attr', # TODO: AC-292
'radiogroup', # TODO: AC-292 'radiogroup', # TODO: AC-292
] ]
...@@ -452,6 +463,7 @@ class DropDownProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -452,6 +463,7 @@ class DropDownProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(DropDownProblemTypeTest, self).setUp(*args, **kwargs) super(DropDownProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-291 'label', # TODO: AC-291
] ]
}) })
...@@ -494,6 +506,7 @@ class StringProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -494,6 +506,7 @@ class StringProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(StringProblemTypeTest, self).setUp(*args, **kwargs) super(StringProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-290 'label', # TODO: AC-290
] ]
}) })
...@@ -535,6 +548,7 @@ class NumericalProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -535,6 +548,7 @@ class NumericalProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(NumericalProblemTypeTest, self).setUp(*args, **kwargs) super(NumericalProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-289 'label', # TODO: AC-289
] ]
}) })
...@@ -578,6 +592,7 @@ class FormulaProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -578,6 +592,7 @@ class FormulaProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(FormulaProblemTypeTest, self).setUp(*args, **kwargs) super(FormulaProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-288 'label', # TODO: AC-288
] ]
}) })
...@@ -628,6 +643,7 @@ class ScriptProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -628,6 +643,7 @@ class ScriptProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(ScriptProblemTypeTest, self).setUp(*args, **kwargs) super(ScriptProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-287 'label', # TODO: AC-287
] ]
}) })
...@@ -677,6 +693,7 @@ class CodeProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -677,6 +693,7 @@ class CodeProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(CodeProblemTypeTest, self).setUp(*args, **kwargs) super(CodeProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'color-contrast', # TODO: AC-286 'color-contrast', # TODO: AC-286
'label', # TODO: AC-286 'label', # TODO: AC-286
] ]
...@@ -785,6 +802,7 @@ class RadioTextProblemTypeTest(ChoiceTextProbelmTypeTestBase, ProblemTypeTestMix ...@@ -785,6 +802,7 @@ class RadioTextProblemTypeTest(ChoiceTextProbelmTypeTestBase, ProblemTypeTestMix
super(RadioTextProblemTypeTest, self).setUp(*args, **kwargs) super(RadioTextProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-285 'label', # TODO: AC-285
'radiogroup', # TODO: AC-285 'radiogroup', # TODO: AC-285
] ]
...@@ -817,6 +835,7 @@ class CheckboxTextProblemTypeTest(ChoiceTextProbelmTypeTestBase, ProblemTypeTest ...@@ -817,6 +835,7 @@ class CheckboxTextProblemTypeTest(ChoiceTextProbelmTypeTestBase, ProblemTypeTest
super(CheckboxTextProblemTypeTest, self).setUp(*args, **kwargs) super(CheckboxTextProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-284 'label', # TODO: AC-284
'checkboxgroup', # TODO: AC-284 'checkboxgroup', # TODO: AC-284
] ]
...@@ -880,6 +899,7 @@ class SymbolicProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin): ...@@ -880,6 +899,7 @@ class SymbolicProblemTypeTest(ProblemTypeTestBase, ProblemTypeTestMixin):
super(SymbolicProblemTypeTest, self).setUp(*args, **kwargs) super(SymbolicProblemTypeTest, self).setUp(*args, **kwargs)
self.problem_page.a11y_audit.config.set_rules({ self.problem_page.a11y_audit.config.set_rules({
'ignore': [ 'ignore': [
'section', # TODO: wcag2aa
'label', # TODO: AC-294 'label', # TODO: AC-294
] ]
}) })
......
...@@ -123,6 +123,11 @@ class ProgramListingPageA11yTest(ProgramPageBase): ...@@ -123,6 +123,11 @@ class ProgramListingPageA11yTest(ProgramPageBase):
self.assertTrue(self.listing_page.is_sidebar_present) self.assertTrue(self.listing_page.is_sidebar_present)
self.assertFalse(self.listing_page.are_cards_present) self.assertFalse(self.listing_page.are_cards_present)
self.listing_page.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.listing_page.a11y_audit.check_for_accessibility_errors() self.listing_page.a11y_audit.check_for_accessibility_errors()
def test_cards_a11y(self): def test_cards_a11y(self):
...@@ -133,6 +138,11 @@ class ProgramListingPageA11yTest(ProgramPageBase): ...@@ -133,6 +138,11 @@ class ProgramListingPageA11yTest(ProgramPageBase):
self.assertTrue(self.listing_page.is_sidebar_present) self.assertTrue(self.listing_page.is_sidebar_present)
self.assertTrue(self.listing_page.are_cards_present) self.assertTrue(self.listing_page.are_cards_present)
self.listing_page.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.listing_page.a11y_audit.check_for_accessibility_errors() self.listing_page.a11y_audit.check_for_accessibility_errors()
...@@ -152,4 +162,9 @@ class ProgramDetailsPageA11yTest(ProgramPageBase): ...@@ -152,4 +162,9 @@ class ProgramDetailsPageA11yTest(ProgramPageBase):
self.auth() self.auth()
self.details_page.visit() self.details_page.visit()
self.details_page.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.details_page.a11y_audit.check_for_accessibility_errors() self.details_page.a11y_audit.check_for_accessibility_errors()
...@@ -656,6 +656,7 @@ class StudioLibraryA11yTest(StudioLibraryTest): ...@@ -656,6 +656,7 @@ class StudioLibraryA11yTest(StudioLibraryTest):
# we will ignore this error in the test until we fix them. # we will ignore this error in the test until we fix them.
lib_page.a11y_audit.config.set_rules({ lib_page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'section', # TODO: wcag2aa
'color-contrast', # TODO: AC-225 'color-contrast', # TODO: AC-225
'link-href', # TODO: AC-226 'link-href', # TODO: AC-226
'nav-aria-label', # TODO: AC-227 'nav-aria-label', # TODO: AC-227
......
...@@ -503,6 +503,7 @@ class StudioSettingsA11yTest(StudioCourseTest): ...@@ -503,6 +503,7 @@ class StudioSettingsA11yTest(StudioCourseTest):
# we will ignore this error in the test until we fix them. # we will ignore this error in the test until we fix them.
self.settings_page.a11y_audit.config.set_rules({ self.settings_page.a11y_audit.config.set_rules({
"ignore": [ "ignore": [
'section', # TODO: wcag2aa
'color-contrast', # TODO: AC-225 'color-contrast', # TODO: AC-225
'link-href', # TODO: AC-226 'link-href', # TODO: AC-226
'nav-aria-label', # TODO: AC-227 'nav-aria-label', # TODO: AC-227
...@@ -579,6 +580,11 @@ class StudioSubsectionSettingsA11yTest(StudioCourseTest): ...@@ -579,6 +580,11 @@ class StudioSubsectionSettingsA11yTest(StudioCourseTest):
self.course_outline.a11y_audit.config.set_scope( self.course_outline.a11y_audit.config.set_scope(
include=['section.edit-settings-timed-examination'] include=['section.edit-settings-timed-examination']
) )
self.course_outline.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.course_outline.a11y_audit.check_for_accessibility_errors() self.course_outline.a11y_audit.check_for_accessibility_errors()
......
...@@ -358,4 +358,9 @@ class CMSVideoA11yTest(CMSVideoBaseTest): ...@@ -358,4 +358,9 @@ class CMSVideoA11yTest(CMSVideoBaseTest):
self.outline.a11y_audit.config.set_scope( self.outline.a11y_audit.config.set_scope(
include=["div.video"] include=["div.video"]
) )
self.outline.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.outline.a11y_audit.check_for_accessibility_errors() self.outline.a11y_audit.check_for_accessibility_errors()
...@@ -1272,4 +1272,9 @@ class LMSVideoModuleA11yTest(VideoBaseTest): ...@@ -1272,4 +1272,9 @@ class LMSVideoModuleA11yTest(VideoBaseTest):
self.video.a11y_audit.config.set_scope( self.video.a11y_audit.config.set_scope(
include=["div.video"] include=["div.video"]
) )
self.video.a11y_audit.config.set_rules({
"ignore": [
'section', # TODO: wcag2aa
]
})
self.video.a11y_audit.check_for_accessibility_errors() self.video.a11y_audit.check_for_accessibility_errors()
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
"underscore.string": "~3.3.4" "underscore.string": "~3.3.4"
}, },
"devDependencies": { "devDependencies": {
"edx-custom-a11y-rules": "git+https://github.com/edx/edx-custom-a11y-rules.git#12d2cae4ffdbb45c5643819211e06c17d6200210", "edx-custom-a11y-rules": "0.1.1",
"pa11y": "3.6.0", "pa11y": "3.6.0",
"pa11y-reporter-1.0-json": "1.0.2", "pa11y-reporter-1.0-json": "1.0.2",
"jasmine-core": "^2.4.1", "jasmine-core": "^2.4.1",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment