Investigate primary button in browser_aboutwelcome_import.js that is failing Tier 2 a11y_checks for New Tab Page
Categories
(Firefox :: New Tab Page, task, P3)
Tracking
()
People
(Reporter: ayeddi, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: access)
We are working on enabling Tier 2 a11y-checks to ensure our products have basic accessibility built-in (bug 1692110) and before that, we need to prepare the existing code base. While we triage and investigate the existent test that would fail once the a11y-checks are enabled in the CI, the failing test was failed-if by the bug 1854514.
This task is to track the investigation into the reasons this test failed and to be able to backtrack this test once it's resolved.
Tests failing (with the stack trace:
Path Error El ID El tagName El className Stack trace
browser/components/newtab/test/browser/browser_aboutwelcome_import.js Node is not focusable via the accessibility API BUTTON primary
"
chrome://mochikit/content/browser-test.js:test_ok:1583
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:a11yFail:339
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertFocusable:382
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertCanBeClicked:667
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:runIfA11YChecks/this.AccessibilityUtils:635
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:handleClick:751
chrome://mochitests/content/browser/browser/components/newtab/test/browser/browser_aboutwelcome_import.js:test_wait_import_spotlight:99
chrome://mochikit/content/browser-test.js:handleTask:1134
chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1206
chrome://mochikit/content/browser-test.js:Tester_execTest:1348
chrome://mochikit/content/browser-test.js:nextTest/<:1123
chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
"
Some Tier 2 accessibility checks for click events fired on controls that should be keyboard accessible and have valid labels were failing for this component. They were captured by testing/mochitest/tests/SimpleTest/AccessibilityUtils.js
via bug 1692110. These failing tests should be temporarily skipped in the directory's browser.ini
file while we investigate these failures. For all confirmed bugs individual defects should be filed.
When the test failure is resolved and its associated bug is closed, remove the fail-if
condition for a11y_checks
from the appropriate file/section to ensure better test coverage and to avoid regressions in a11y of this component.
Reporter | ||
Comment 1•1 year ago
|
||
New file location: mozilla-central/browser/components/aboutwelcome/tests/browser/browser_aboutwelcome_import.js
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Updated•1 year ago
|
Reporter | ||
Comment 2•10 months ago
|
||
It seems to be that the test click is sent to the Import
button after the dialog has been already closed.
Description
•