Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b7e51e7
Add optional chaining to prevent exception if activeFormats not defin…
glendaviesnz Jun 21, 2021
7307227
Block Library: Ensure there is no direct import from core/editor stor…
gziolo Jun 22, 2021
1ae85c0
Testing: Fix failing PHPUnit test caused by changes in WP core (#32888)
gziolo Jun 22, 2021
93f6563
Fix a regression where `custom-units` are forced as an array. (#32898)
desrosj Jun 23, 2021
ec414b1
TemplatePanel: Fixed a problem that when a new template is created, t…
torounit Jun 22, 2021
abdd11e
Fix collapsing appender when paragraph disabled. (#32894)
jasmussen Jun 23, 2021
e42aaef
Query Loop Patterns: Use plain `div` for wrapper element (#32867)
ryelle Jun 23, 2021
7d83e7c
Don't display admin notices on widgets screen. (#32877)
tellthemachines Jun 23, 2021
b7ccbbf
Fix scroll jitter in Customize Widgets (#32479)
stokesman Jun 24, 2021
6c81984
Fix legacy widget edit style bleed (#32871)
tellthemachines Jun 24, 2021
06d889b
Stretch Widgets editor layout to full height (#32905)
tellthemachines Jun 24, 2021
5a9b396
Image Block: Correctly set image size slug (#32364)
Mamaduka Jun 24, 2021
c3f3fed
Avoid flash of background color by moving gray background color to el…
gwwar Jun 23, 2021
942fe13
Disable "FSE" blocks in Widgets Editor (#32761)
getdave Jun 24, 2021
437ca8e
Fix broken the post-template-editor test. (#32904)
torounit Jun 23, 2021
3ede3a2
Block Library: Unify handling for block view scripts (#32814)
gziolo Jun 23, 2021
c16b1d7
Update webpack.config.js
youknowriad Jun 24, 2021
789c167
Global Styles: Allow custom properties to merge (#31840)
scruffian Jun 24, 2021
187ed1c
Update lib/blocks.php
youknowriad Jun 24, 2021
a47f4e5
Update packages/e2e-tests/specs/experiments/blocks/navigation.test.js
youknowriad Jun 24, 2021
fe467b5
Update packages/e2e-tests/specs/experiments/blocks/navigation.test.js
youknowriad Jun 24, 2021
3b32539
Update packages/e2e-tests/specs/experiments/blocks/navigation.test.js
youknowriad Jun 24, 2021
b9ffaeb
Update packages/e2e-tests/specs/experiments/blocks/navigation.test.js
youknowriad Jun 24, 2021
7ab23e3
Fix linting issues
youknowriad Jun 24, 2021
a7312c5
[E2E Tests]: Fix WP editor metabox test (#32915)
Mamaduka Jun 23, 2021
3ffeb4f
Disable Android e2e tests while we investigate foundational breakage …
dcalhoun Jun 23, 2021
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
Prev Previous commit
Next Next commit
Fix broken the post-template-editor test. (#32904)
* Change to a theme that supports block-templates, and then delete wp_template and wp_template_part posts.

* add plugin for switch add_theme_support('block-templates')

* Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js

Co-authored-by: Greg Ziółkowski <[email protected]>

* Update packages/e2e-tests/specs/experiments/post-editor-template-mode.test.js

Co-authored-by: Greg Ziółkowski <[email protected]>
  • Loading branch information
2 people authored and youknowriad committed Jun 24, 2021
commit 437ca8edb431389a5461ac2002bebadc9089f553
17 changes: 17 additions & 0 deletions packages/e2e-tests/plugins/block-templates.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
/**
* Plugin Name: Gutenberg Test Block Templates
* Plugin URI: https://github.com/WordPress/gutenberg
* Author: Gutenberg Team
*
* @package gutenberg-test-block-templates
*/

/**
* Activate Block Templates.
*/
function enqueue_block_templates() {
add_theme_support( 'block-templates' );
}

add_action( 'setup_theme', 'enqueue_block_templates' );
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import {
trashAllPosts,
openPreviewPage,
openDocumentSettingsSidebar,
activatePlugin,
deactivatePlugin,
} from '@wordpress/e2e-test-utils';

const openSidebarPanelWithTitle = async ( title ) => {
Expand Down Expand Up @@ -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 () => {
Expand Down