Skip to content

Commit

Permalink
Adjust more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Apr 3, 2024
1 parent f676430 commit 43e8471
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/e2e/specs/editor/various/post-visibility.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test.describe( 'Post visibility', () => {

await page.click( 'role=radio[name="Private"i]' );

await page.click( 'role=button[name="OK"i]' );
await page.click( 'role=button[name="Publish"i]' );

const currentStatus = await page.evaluate( () => {
return window.wp.data
Expand Down Expand Up @@ -99,7 +99,7 @@ test.describe( 'Post visibility', () => {

await page.click( 'role=radio[name="Private"i]' );

await page.click( 'role=button[name="OK"i]' );
await page.click( 'role=button[name="Publish"i]' );

const currentStatus = await page.evaluate( () => {
return window.wp.data
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/editor/various/preview.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ test.describe( 'Preview', () => {
.getByRole( 'button', { name: 'Switch to draft' } )
.click();
// FIXME: The confirmation dialog is not named yet.
await page.click( 'role=dialog >> role=button[name="OK"i]' );
await page.click( 'role=dialog >> role=button[name="Unpublish"i]' );

// Wait for the status change.
// @see https://github.com/WordPress/gutenberg/pull/43933
Expand Down

0 comments on commit 43e8471

Please sign in to comment.