Commit 50773fe
committed
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/D2051201 parent fcda935 commit 50773fe
File tree
2 files changed
+13
-1
lines changed- browser/components/preferences/tests
2 files changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | 279 | | |
281 | 280 | | |
282 | 281 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
410 | 416 | | |
411 | 417 | | |
412 | 418 | | |
413 | 419 | | |
414 | 420 | | |
| 421 | + | |
415 | 422 | | |
416 | 423 | | |
417 | 424 | | |
418 | 425 | | |
419 | 426 | | |
420 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
421 | 433 | | |
422 | 434 | | |
423 | 435 | | |
| |||
432 | 444 | | |
433 | 445 | | |
434 | 446 | | |
| 447 | + | |
435 | 448 | | |
436 | 449 | | |
437 | 450 | | |
| |||
0 commit comments