Bug: Perma a11y-checks [tier 2] browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Node is not accessible via accessibility API: id: searchmode-switcher-close, tagName: toolbarbutton, className: toolbarbutton-icon close-button -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2024-09-03 23:42:24+00:00
Resolved: 2024-11-12 17:39:30+00:00

**Filed by:** nfay [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=472782943&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/Yxz5UlhaSpKsglR3hIXsSw/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2024-09-03T22:44:28.725Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected searchMode - {"engineName":"Amazon.com","isGeneralPurposeEngine":false,"isPreview":false,"entry":"other"} deepEqual {"engineName":"Amazon.com","entry":"other","isPreview":false,"isGeneralPurposeEngine":false} - 
[task 2024-09-03T22:44:28.726Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected textContent - "Amazon.com" == "Amazon.com" - 
[task 2024-09-03T22:44:28.726Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2024-09-03T22:44:28.727Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected textContent - "Amazon.com" == "Amazon.com" - 
[task 2024-09-03T22:44:28.728Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected l10n - {"args":null,"id":null} deepEqual {"id":null,"args":null} - 
[task 2024-09-03T22:44:28.729Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected placeholder l10n when search mode is active - {"args":{"name":"Amazon.com"},"id":"urlbar-placeholder-search-mode-other-engine"} deepEqual {"id":"urlbar-placeholder-search-mode-other-engine","args":{"name":"Amazon.com"}} - 
[task 2024-09-03T22:44:28.729Z] 22:44:28     INFO - Press the close button and escape search mode
[task 2024-09-03T22:44:28.730Z] 22:44:28     INFO - Buffered messages finished
[task 2024-09-03T22:44:28.732Z] 22:44:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Node is not accessible via accessibility API: id: searchmode-switcher-close, tagName: toolbarbutton, className: toolbarbutton-icon close-button - 
[task 2024-09-03T22:44:28.732Z] 22:44:28     INFO - Stack trace:
[task 2024-09-03T22:44:28.732Z] 22:44:28     INFO - chrome://mochikit/content/browser-test.js:test_ok:1597
[task 2024-09-03T22:44:28.733Z] 22:44:28     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:a11yFail:752
[task 2024-09-03T22:44:28.733Z] 22:44:28     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:assertCanBeClicked:1161
[task 2024-09-03T22:44:28.733Z] 22:44:28     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:runIfA11YChecks/this.AccessibilityUtils:1137
[task 2024-09-03T22:44:28.734Z] 22:44:28     INFO - chrome://mochikit/content/tests/SimpleTest/AccessibilityUtils.js:handleEvent:1254
[task 2024-09-03T22:44:28.734Z] 22:44:28     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js:test_navigate_switcher:230
[task 2024-09-03T22:44:28.734Z] 22:44:28     INFO - chrome://mochitests/content/browser/browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js:test_keyboard_nav:258
[task 2024-09-03T22:44:28.735Z] 22:44:28     INFO - chrome://mochikit/content/browser-test.js:handleTask:1145
[task 2024-09-03T22:44:28.735Z] 22:44:28     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1217
[task 2024-09-03T22:44:28.735Z] 22:44:28     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1358
[task 2024-09-03T22:44:28.735Z] 22:44:28     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1134
[task 2024-09-03T22:44:28.735Z] 22:44:28     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-09-03T22:44:28.736Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Urlbar should never be in search mode without the corresponding attribute. - false == false - 
[task 2024-09-03T22:44:28.736Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | gURLBar.searchMode should exist as expected - false == false - 
[task 2024-09-03T22:44:28.737Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Urlbar results does not have searchmodesource attribute - true == true - 
[task 2024-09-03T22:44:28.737Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected placeholder l10n when search mode is inactive - {"args":{"name":"Google"},"id":"urlbar-placeholder-with-name"} deepEqual {"id":"urlbar-placeholder-with-name","args":{"name":"Google"}} - 
[task 2024-09-03T22:44:28.738Z] 22:44:28     INFO - Open the urlbar and open the switcher via keyboard
[task 2024-09-03T22:44:28.738Z] 22:44:28     INFO - Select first result and enter search mode
[task 2024-09-03T22:44:28.739Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Urlbar should never be in search mode without the corresponding attribute. - true == true - 
[task 2024-09-03T22:44:28.739Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | gURLBar.searchMode should exist as expected - true == true - 
[task 2024-09-03T22:44:28.740Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Urlbar results does not have searchmodesource attribute - true == true - 
[task 2024-09-03T22:44:28.741Z] 22:44:28     INFO - TEST-PASS | browser/components/urlbar/tests/browser/browser_searchModeSwitcher_basic.js | Expected searchMode - {"engineName":"Amazon.com","isGeneralPurposeEngine":false,"isPreview":false,"entry":"other"} deepEqual {"engineName":"Amazon.com","entry":"other","isPreview":false,"isGeneralPurposeEngine":false} - 
```