Skip to content

Commit

Permalink
Fix flaky Site Editor pages e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Mar 22, 2024
1 parent 116b219 commit 5d8d38d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/e2e/specs/site-editor/pages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ test.describe( 'Pages', () => {
// Set up
await draftNewPage( page );
await addPageContent( editor, page );
await editor.openDocumentSettingsSidebar();

/*
* Test create page.Test creating a new page and editing the template.
*/
// Switch to template editing focus.
await editor.openDocumentSettingsSidebar();
await page
.getByRole( 'region', { name: 'Editor settings' } )
const editorSettings = page.getByRole( 'region', {
name: 'Editor settings',
} );
await editorSettings.getByRole( 'tab', { name: 'Page' } ).click();
await editorSettings
.getByRole( 'button', { name: 'Template options' } )
.click();
await page.getByRole( 'menuitem', { name: 'Edit template' } ).click();
Expand Down

0 comments on commit 5d8d38d

Please sign in to comment.