Skip to content

Commit

Permalink
Upgrade Playwright to v1.45 (#61443)
Browse files Browse the repository at this point in the history
* Upgrade Playwright to v1.44
* Use new accessibility assertions
* Bump to latest
* Bump to v1.45
* Bump to v1.45.1
* Skip failing RichText tests on Firefox

Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
Co-authored-by: swissspidy <swissspidy@git.wordpress.org>
Co-authored-by: afercia <afercia@git.wordpress.org>
Co-authored-by: WunderBart <bartkalisz@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
  • Loading branch information
6 people authored Jul 15, 2024
1 parent 3f34e00 commit de23bb9
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 36 deletions.
54 changes: 27 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"@octokit/rest": "16.26.0",
"@octokit/types": "6.34.0",
"@octokit/webhooks-types": "5.8.0",
"@playwright/test": "1.43.0",
"@playwright/test": "1.45.1",
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
"@react-native/babel-preset": "0.73.10",
"@react-native/metro-babel-transformer": "0.73.10",
Expand Down
2 changes: 1 addition & 1 deletion packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
"webpack-dev-server": "^4.15.1"
},
"peerDependencies": {
"@playwright/test": "^1.43.0",
"@playwright/test": "^1.45.1",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/rich-text.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ test.describe( 'RichText (@firefox, @webkit)', () => {
expect( count ).toBe( 1 );
} );

test( 'should return focus when pressing formatting button', async ( {
test( 'should return focus when pressing formatting button (-firefox)', async ( {
page,
editor,
} ) => {
Expand Down Expand Up @@ -415,7 +415,7 @@ test.describe( 'RichText (@firefox, @webkit)', () => {
] );
} );

test( 'should update internal selection after fresh focus', async ( {
test( 'should update internal selection after fresh focus (-firefox)', async ( {
page,
editor,
pageUtils,
Expand Down
8 changes: 3 additions & 5 deletions test/e2e/specs/site-editor/navigation-editor.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,9 @@ test.describe( 'Editing Navigation Menus', () => {
await expect( navBlockNode ).toBeVisible();

// The Navigation block description should contain the locked state information.
const navBlockNodeDescriptionId =
await navBlockNode.getAttribute( 'aria-describedby' );
await expect(
listView.locator( `id=${ navBlockNodeDescriptionId }` )
).toHaveText( /This block is locked./ );
await expect( navBlockNode ).toHaveAccessibleDescription(
/This block is locked./
);

// The block should have no options menu.
await expect(
Expand Down

0 comments on commit de23bb9

Please sign in to comment.