Skip to content
Closed
Show file tree
Hide file tree
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: 5 additions & 3 deletions tests/e2e/block-testimonial.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,11 @@ test.describe( 'SCF Block > Testimonial', () => {
await publishButton.click();

// Wait for the error notice to appear at the top of the editor
const errorNotice = page.locator(
'.components-notice.is-error .components-notice__content'
);
const errorNotice = page
.getByLabel( 'Editor content' )
.getByText(
'An ACF Block on this page requires attention before you can save.'
);
await expect( errorNotice ).toBeVisible( { timeout: 1000 } );
} );
} );
8 changes: 5 additions & 3 deletions tests/e2e/block-v3-features.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,11 @@ test.describe( 'SCF Block V3 Features', () => {
await publishButton.click();

// Wait for the error notice to appear
const errorNotice = page.locator(
'.components-notice.is-error .components-notice__content'
);
const errorNotice = page
.getByLabel( 'Editor content' )
.getByText(
'An ACF Block on this page requires attention before you can save.'
);
await expect( errorNotice ).toBeVisible( { timeout: 3000 } );
} );

Expand Down
Loading