test: add tree element around treeitems elements (#12457)

This commit is contained in:
Alexandra Borovova 2024-05-17 10:57:48 +02:00 committed by GitHub
parent 6dd3aa7241
commit f2b9e886d8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 7 deletions

View File

@ -932,13 +932,6 @@
"expectations": ["PASS", "TIMEOUT"],
"comment": "times out flakily"
},
{
"testIdPattern": "[ariaqueryhandler.spec] AriaQueryHandler queryOne (Chromium web test) should find treeitem by name",
"platforms": ["darwin", "linux", "win32"],
"parameters": ["firefox", "webDriverBiDi"],
"expectations": ["FAIL"],
"comment": "TODO: Needs investigation"
},
{
"testIdPattern": "[bfcache.spec] BFCache can navigate to a BFCached page containing an OOPIF and a worker",
"platforms": ["darwin", "linux", "win32"],

View File

@ -651,6 +651,7 @@ describe('AriaQueryHandler', () => {
<!-- Accessible name for the <input> is "Accessible Name" -->
<input id="node23">
<div id="node24" title="Accessible Name"></div>
<div role="tree">
<div role="treeitem" id="node30">
<div role="treeitem" id="node31">
<div role="treeitem" id="node32">item1</div>
@ -658,6 +659,7 @@ describe('AriaQueryHandler', () => {
</div>
<div role="treeitem" id="node34">item3</div>
</div>
</div>
<!-- Accessible name for the <div> is "item1 item2 item3" -->
<div aria-describedby="node30"></div>
`