gecko-dev/toolkit/components/aboutconfig/test/browser
Anna Yeddi 2cf6f97667 Bug 1882380 - Update AccessibilityUtils to ensure clicking on a label text content for a form field is not failing a11y_checks. r=Jamie
Some tests are reporting failing a11y_checks while the click is sent to a text leaf within a label of a radio button with an appropriate markup, for example when `span` is clicked in [this case](https://searchfox.org/mozilla-central/rev/9cd4ea81e27db6b767f1d9bbbcf47da238dd64fa/toolkit/components/aboutconfig/test/browser/browser_edit.js#418-424):
```
<label>
    <input type="radio" name="type" value="Boolean">
    <span data-l10n-id="about-config-pref-add-type-boolean">
        Boolean
    </span>
</label>
```

We need to add a check in the `findInteractiveAccessible()` method to allow for a label accessible to return its related form control to proceed with the a11y-checks suite, incl. the `assertLabeled` check too.

Test that is affected by this change: `toolkit/components/aboutconfig/test/browser/browser_edit.js`

Differential Revision: https://phabricator.services.mozilla.com/D205112
2024-03-25 15:25:37 +00:00
..
browser.toml Bug 1882380 - Update AccessibilityUtils to ensure clicking on a label text content for a form field is not failing a11y_checks. r=Jamie 2024-03-25 15:25:37 +00:00
browser_accessibility.js
browser_basic.js
browser_clipboard.js
browser_edit.js Bug 1882378 - Add an accessible name for Edit pref value inputs on about:config page. r=settings-reviewers,Gijs 2024-02-28 17:51:50 +00:00
browser_locked.js
browser_observe.js
browser_search.js
browser_warning.js
head.js