diff --git a/packages/e2e-tests/plugins/block-templates.php b/packages/e2e-tests/plugins/block-templates.php new file mode 100644 index 0000000000000..e8321a1d74542 --- /dev/null +++ b/packages/e2e-tests/plugins/block-templates.php @@ -0,0 +1,17 @@ + { @@ -89,12 +91,14 @@ const createNewTemplate = async ( templateName ) => { describe( 'Post Editor Template mode', () => { beforeAll( async () => { + await activatePlugin( 'gutenberg-test-block-templates' ); await trashAllPosts( 'wp_template' ); await trashAllPosts( 'wp_template_part' ); } ); afterAll( async () => { await activateTheme( 'twentytwentyone' ); + await deactivatePlugin( 'gutenberg-test-block-templates' ); } ); it( 'Allow to switch to template mode, edit the template and check the result', async () => {