Closed Bug 1863815 Opened 7 months ago Closed 7 months ago

Investigate if browser_panelUINotifications_multiWindow in Customizable UI needs to be updated to pass a11y_checks

Categories

(Firefox :: Settings UI, task, P3)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: ayeddi, Assigned: ayeddi)

References

Details

Attachments

(1 file)

There is a failing test in the browser/components/customizableui/test/browser_panelUINotifications_multiWindow.js that appear to, in some environments, send a click event on a panel button while the panel itself is still in the showing state.

We should wait for the panel to be shown to keep the test harness happy and to ensure the test is proceeding as it is expected to. Similar behavior was unpacked during the investigation of the bug 1859035.

a11y_checks failing data (with stack trace):

FAIL	browser/components/customizableui/test/browser_panelUINotifications_multiWindow.js	Node is not focusable via the accessibility API		button	popup-notification-primary-button primary panel-footer-button	"
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/customizableui/test/browser_panelUINotifications_multiWindow.js:testDoesNotShowDoorhangerForBackgroundWindow/<:62
resource://testing-common/BrowserTestUtils.sys.mjs:withNewTab:146
chrome://mochitests/content/browser/browser/components/customizableui/test/browser_panelUINotifications_multiWindow.js:testDoesNotShowDoorhangerForBackgroundWindow:18
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
"

The test is sending a click to a button on a doorhander that is normally accessible, but the a11y-checks are consistenly failing the test, because in some cases the event is sent while the panel is still showing. We need to wait for the panel to change it's status to open and to observe the popup-shown event to ensure the test is continued as it was expected to.

Attachment #9362691 - Attachment description: WIP: Bug 1863815 - Wait for a panel to be shown before clicking a button in browser_panelUINotifications_multiWindow. r=Gijs!,Jamie → Bug 1863815 - Wait for a panel to be shown before clicking a button in browser_panelUINotifications_multiWindow. r=Gijs!,Jamie
Pushed by ayeddi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/740891aba7f0
Wait for a panel to be shown before clicking a button in browser_panelUINotifications_multiWindow. r=Gijs,Jamie
See Also: → 1864240
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: