Files
tubestation/browser/components
Anna Yeddi f8da9a80ab Bug 1886268 - Add exceptions from a11y_checks for two clicks on non-interactive elements in Settings UI. r=settings-reviewers,Gijs
The `browser/browser/components/preferences/tests/browser_subdialogs.js` sends two clicks on the following non-interactive element to check the closing of the opened dialog using an alternative way of the popup dismissal is working as expected:
1. [label with "dialogTitle" class](https://searchfox.org/mozilla-central/rev/09b59a7de6848639f27297888889a06e97561074/browser/components/preferences/tests/browser_subdialogs.js#407-414) to confirm nothing happens
1. [overlay background with "dialogTemplate" ID](https://searchfox.org/mozilla-central/rev/09b59a7de6848639f27297888889a06e97561074/browser/components/preferences/tests/browser_subdialogs.js#416-435) to confirm clicking outside of the dialog does, in fact, closes it.

For users of keyboards and assistive technology another way like pressing `Esc` key is available to dismiss the dialog, thus we need to add exceptions from the a11y_checks for this tests via `setEnv` and remove the `fail-if` notation from its test manifest.

Differential Revision: https://phabricator.services.mozilla.com/D205120
2024-03-20 23:27:36 +00:00
..