Skip to content

Commit

Permalink
Fix flaky Site Editor pages e2e test (WordPress#60109)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka authored and carstingaxion committed Mar 27, 2024
1 parent e646b89 commit 07545a1
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 07545a1

Please sign in to comment.