Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/e2e/specs/editor/various/patterns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,14 @@ test.describe( 'Synced pattern', () => {

// Save the reusable block and update the post.
await editorTopBar.getByRole( 'button', { name: 'Save' } ).click();
const entitiesSaveButton = page
.getByRole( 'region', { name: 'Editor publish' } )
.getByRole( 'button', { name: 'Save', exact: true } );
const isEntitiesSavePanelVisible = await entitiesSaveButton.isVisible();
// Handle multi-entity save panel if it appears.
if ( isEntitiesSavePanelVisible ) {
await entitiesSaveButton.click();
}
await page
.getByRole( 'button', { name: 'Dismiss this notice' } )
.filter( { hasText: 'Pattern updated.' } )
Expand Down
Loading