From 0e05eb3e2fb9df39bb5e6660607a09020b5da050 Mon Sep 17 00:00:00 2001 From: Jerry Jones Date: Fri, 6 Dec 2024 08:47:09 -0600 Subject: [PATCH] Add deleteAllTemplates calls back in --- test/e2e/specs/site-editor/site-editor-inserter.spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/e2e/specs/site-editor/site-editor-inserter.spec.js b/test/e2e/specs/site-editor/site-editor-inserter.spec.js index db1d435e66f141..a730367d841bf8 100644 --- a/test/e2e/specs/site-editor/site-editor-inserter.spec.js +++ b/test/e2e/specs/site-editor/site-editor-inserter.spec.js @@ -6,7 +6,11 @@ const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); test.describe( 'Site Editor Inserter', () => { test.beforeAll( async ( { requestUtils } ) => { // We need the theme to have a section root so zoom out is enabled - await requestUtils.activateTheme( 'twentytwentyfour' ); + await Promise.all( [ + requestUtils.activateTheme( 'twentytwentyfour' ), + requestUtils.deleteAllTemplates( 'wp_template' ), + requestUtils.deleteAllTemplates( 'wp_template_part' ), + ] ); } ); test.afterAll( async ( { requestUtils } ) => {