Skip to content

Commit

Permalink
Fix flaky Site Editor command center e2e test (#62454)
Browse files Browse the repository at this point in the history
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
Mamaduka and Mamaduka authored Jun 11, 2024
1 parent e78cb55 commit b7368c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/e2e/specs/site-editor/command-center.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ test.describe( 'Site editor command palette', () => {
.click();
await page.keyboard.type( 'index' );
await page.getByRole( 'option', { name: 'index' } ).click();
await expect( page.getByRole( 'heading', { level: 1 } ) ).toHaveText(
'Index'
);
await expect(
page
.getByRole( 'region', { name: 'Editor top bar' } )
.getByRole( 'heading', { level: 1 } )
).toHaveText( 'Index' );
} );

test( 'Open the command palette and navigate to Customize CSS', async ( {
Expand Down

0 comments on commit b7368c0

Please sign in to comment.