Closed Bug 1872903 Opened 5 months ago Closed 5 months ago

Add an exception from a11y_checks for a click on a web content in Desktop UI

Categories

(Firefox :: General, task, P3)

task

Tracking

()

RESOLVED FIXED
123 Branch
Accessibility Severity s4
Tracking Status
firefox123 --- fixed

People

(Reporter: ayeddi, Assigned: ayeddi)

References

(Blocks 1 open bug)

Details

(Keywords: access)

Attachments

(1 file)

The browser/base/content/test/forms/browser_selectpopup_large.js sends a click outside on a web content. We do not want to test arbitrary web content, since we do not support remote documents like in-content elements with a11y_checks of browser mochitests at the moment, thus we add an exception from the a11y_checks for this tests via setEnv and remove the fail-if notation from its test manifest.

A11y_checks output is the following:

Result	Path	Error	El ID	El tagName	El className	Stack trace
FAIL	browser/base/content/test/forms/browser_selectpopup_large.js	Interactive elements must be labeled	ContentSelectDropdown	menulist		"
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:assertLabelled:510
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertCanBeClicked:670
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:runIfA11YChecks/this.AccessibilityUtils:635
chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:handleClick:751
chrome://mochikit/content/tests/SimpleTest/EventUtils.js:synthesizeMouseAtPoint:621
chrome://mochitests/content/browser/browser/base/content/test/forms/browser_selectpopup_large.js:performLargePopupTests:177
chrome://mochitests/content/browser/browser/base/content/test/forms/browser_selectpopup_large.js:test_large_popup:300
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 browser/base/content/test/forms/browser_selectpopup_large.js sends a click outside on a web content. We do not want to test arbitrary web content, since we do not support remote documents like in-content elements with a11y_checks of browser mochitests at the moment, thus we add an exception from the a11y_checks for this tests via setEnv and remove the fail-if notation from its test manifest.

The same exception is needed for the browser/base/content/test/forms/browser_selectpopup_toplevel.js - <select> element - in Desktop UI tests that is also failing the labelRule of a11y_checks.

Attachment #9370925 - Attachment description: Bug 1872903 - Add an exception from a11y_checks for a click on a web content in Desktop UI. r=mconley,florian → Bug 1872903 - Add an exception from a11y_checks for clicks on a web content in Desktop UI mochitests. r=mconley,florian
Blocks: 1872925
Pushed by ayeddi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c7be36ee0f24
Add an exception from a11y_checks for clicks on a web content in Desktop UI mochitests. r=mconley
Status: NEW → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: