Skip to content

Commit

Permalink
Fix flaky block template registration e2e test (#64541)
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 Aug 15, 2024
1 parent d530eca commit 8bee004
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/e2e/specs/site-editor/template-registration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,13 @@ test.describe( 'Block template registration', () => {

test( 'WP default templates can be overridden by plugins', async ( {
page,
requestUtils,
} ) => {
await page.goto( '?page_id=2' );
const { id } = await requestUtils.createPage( {
title: 'Plugin override page',
status: 'publish',
} );
await page.goto( `?page_id=${ id }` );
await expect(
page.getByText( 'This is a plugin-registered page template.' )
).toBeVisible();
Expand Down

0 comments on commit 8bee004

Please sign in to comment.