Skip to content

Commit

Permalink
fix: test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Sep 13, 2023
1 parent 2bff2e7 commit 1ed5746
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/puppeteer-core/src/common/Accessibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ class AXNode {
case 'doc-cover':
case 'graphics-symbol':
case 'img':
case 'image':
case 'Meter':
case 'scrollbar':
case 'slider':
Expand Down
2 changes: 1 addition & 1 deletion packages/puppeteer-core/src/common/AriaQueryHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const normalizeValue = (value: string): string => {
* The following examples showcase how the syntax works wrt. querying:
*
* - 'title[role="heading"]' queries for elements with name 'title' and role 'heading'.
* - '[role="img"]' queries for elements with role 'img' and any name.
* - '[role="image"]' queries for elements with role 'image' and any name.
* - 'label' queries for elements with name 'label' and any role.
* - '[name=""][role="button"]' queries for elements with no name and role 'button'.
*/
Expand Down
2 changes: 1 addition & 1 deletion test/src/accessibility.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ describe('Accessibility', function () {
name: 'Edit this image: ',
},
{
role: 'img',
role: 'image',
name: 'my fake image',
},
],
Expand Down
2 changes: 1 addition & 1 deletion test/src/ariaqueryhandler.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ describe('AriaQueryHandler', () => {

let imgFound = false;
const waitForSelector = page
.waitForSelector('aria/[role="img"]')
.waitForSelector('aria/[role="image"]')
.then(() => {
return (imgFound = true);
});
Expand Down

0 comments on commit 1ed5746

Please sign in to comment.