AC-530 fixing link-href ignores in the platform

This commit is contained in:
Chris Rodriguez
2016-07-13 14:51:51 -04:00
parent a250b03b60
commit b5efcc15f5
53 changed files with 299 additions and 207 deletions

View File

@@ -656,8 +656,8 @@ class StudioLibraryA11yTest(StudioLibraryTest):
# we will ignore this error in the test until we fix them.
lib_page.a11y_audit.config.set_rules({
"ignore": [
'link-href', # TODO: AC-226
'icon-aria-hidden', # TODO: AC-229
'link-href', # TODO: AC-564
],
})

View File

@@ -504,7 +504,7 @@ class StudioSettingsA11yTest(StudioCourseTest):
# we will ignore this error in the test until we fix them.
self.settings_page.a11y_audit.config.set_rules({
"ignore": [
'link-href', # TODO: AC-226
'link-href', # TODO: AC-557
'icon-aria-hidden', # TODO: AC-229
],
})

View File

@@ -61,7 +61,6 @@ class TextbooksTest(StudioCourseTest):
self.textbook_view_page.a11y_audit.config.set_rules({
'ignore': [
'skip-link', # AC-501
'link-href', # AC-502
'section' # AC-503
],
})
@@ -77,13 +76,17 @@ 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': [
'#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-lang', # AC-504
'meta-viewport', # AC-505
'skip-link', # AC-506
'link-href', # AC-507
],
})
self.textbook_view_page.a11y_audit.check_for_accessibility_errors()