This is a plugin-registered template.
diff --git a/docs/contributors/code/e2e/overusing-snapshots.md b/docs/contributors/code/e2e/overusing-snapshots.md index 6364fd7394789e..5fbc8b735c2320 100644 --- a/docs/contributors/code/e2e/overusing-snapshots.md +++ b/docs/contributors/code/e2e/overusing-snapshots.md @@ -90,7 +90,7 @@ Due to the lack of inline snapshots in Playwright, some migrated tests are using ```js expect( await editor.getEditedPostContent() ).toBe( ` -
Paragraph
+Paragraph
` ); ``` diff --git a/docs/explanations/architecture/key-concepts.md b/docs/explanations/architecture/key-concepts.md index 30318d29422d37..aaf801c269db46 100644 --- a/docs/explanations/architecture/key-concepts.md +++ b/docs/explanations/architecture/key-concepts.md @@ -18,7 +18,7 @@ Blocks understand content as attributes and are serializable to HTML. To this po ```html -Welcome to the world of blocks.
+Welcome to the world of blocks.
``` diff --git a/docs/explanations/architecture/styles.md b/docs/explanations/architecture/styles.md index 68f09f04d21d32..506793221aa6b8 100644 --- a/docs/explanations/architecture/styles.md +++ b/docs/explanations/architecture/styles.md @@ -27,7 +27,7 @@ Since the introduction of the block editor in WordPress 5.0, there were tools fo By default, blocks come with a given HTML markup. Think of the paragraph block, for example: ```html - + ``` In its simplest form, any style rule that targets the `p` selector will apply styles to this block, whether it comes from a block, a theme, etc. @@ -37,7 +37,7 @@ The user may change the state of this block by applying different styles: a text After some user modifications to the block, the initial markup may become something like this: ```html - ``` diff --git a/docs/getting-started/fundamentals/block-wrapper.md b/docs/getting-started/fundamentals/block-wrapper.md index 98c435f6ebe2f7..def44fe084f4a0 100644 --- a/docs/getting-started/fundamentals/block-wrapper.md +++ b/docs/getting-started/fundamentals/block-wrapper.md @@ -90,6 +90,7 @@ When you add `supports` for any feature, the proper classes get added to the obj ```htmlThis is a test.
``` diff --git a/docs/how-to-guides/curating-the-editor-experience/patterns.md b/docs/how-to-guides/curating-the-editor-experience/patterns.md index abb7d131041dfb..056204b1ffd8c0 100644 --- a/docs/how-to-guides/curating-the-editor-experience/patterns.md +++ b/docs/how-to-guides/curating-the-editor-experience/patterns.md @@ -32,7 +32,7 @@ To opt into this, include `core/post-content` in the Block Types for your patter -To RSVP, please join the #fse-outreach-experiment in Make Slack.
+To RSVP, please join the #fse-outreach-experiment in Make Slack.
@@ -43,7 +43,7 @@ To opt into this, include `core/post-content` in the Block Types for your patterWe hope to see you there!
+We hope to see you there!
404 pattern
', + 'content' => '404 pattern
', ) ); ``` @@ -87,4 +87,4 @@ The content creator will then find the respective Pattern in the inserter “Pat ## Additional resources -- [Using template patterns to build multiple homepage designs](https://developer.wordpress.org/news/2023/04/13/using-template-patterns-to-build-multiple-homepage-designs/) (WordPress Developer Blog) \ No newline at end of file +- [Using template patterns to build multiple homepage designs](https://developer.wordpress.org/news/2023/04/13/using-template-patterns-to-build-multiple-homepage-designs/) (WordPress Developer Blog) diff --git a/docs/how-to-guides/platform/custom-block-editor.md b/docs/how-to-guides/platform/custom-block-editor.md index b376cc3a9569a4..36c23241e71029 100644 --- a/docs/how-to-guides/platform/custom-block-editor.md +++ b/docs/how-to-guides/platform/custom-block-editor.md @@ -502,7 +502,7 @@ If you open DeveloperTools and inspect the LocalStorage you will see serialized -This is an experiment to discover how easy (or otherwise) it is to create a standalone instance of the Block Editor in the WordPress admin.
+This is an experiment to discover how easy (or otherwise) it is to create a standalone instance of the Block Editor in the WordPress admin.
``` diff --git a/docs/reference-guides/block-api/block-patterns.md b/docs/reference-guides/block-api/block-patterns.md index b0096e24791de8..04abd3d2396f61 100644 --- a/docs/reference-guides/block-api/block-patterns.md +++ b/docs/reference-guides/block-api/block-patterns.md @@ -152,7 +152,7 @@ register_block_pattern( 'title' => __( 'Powered by WordPress', 'my-plugin' ), 'blockTypes' => array( 'core/paragraph' ), 'content' => ' -Powered by WordPress
+Powered by WordPress
', ) ); @@ -174,7 +174,7 @@ register_block_pattern(Powered by WordPress
+Powered by WordPress
', ) diff --git a/docs/reference-guides/core-blocks.md b/docs/reference-guides/core-blocks.md index 630bcdd574e9a0..879a7776ce8f0e 100644 --- a/docs/reference-guides/core-blocks.md +++ b/docs/reference-guides/core-blocks.md @@ -531,7 +531,7 @@ Start with the basic building block of all narrative. ([Source](https://github.c - **Name:** core/paragraph - **Category:** text -- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), splitting, typography (fontSize, lineHeight), ~~className~~ +- **Supports:** __unstablePasteTextInline, anchor, color (background, gradients, link, text), interactivity (clientNavigation), spacing (margin, padding), splitting, typography (fontSize, lineHeight) - **Attributes:** align, content, direction, dropCap, placeholder ## Pattern Placeholder diff --git a/lib/blocks.php b/lib/blocks.php index 75ffd0a6c34a42..7b07fb918395ed 100644 --- a/lib/blocks.php +++ b/lib/blocks.php @@ -82,6 +82,7 @@ function gutenberg_reregister_core_block_types() { 'navigation-link.php' => 'core/navigation-link', 'navigation-submenu.php' => 'core/navigation-submenu', 'page-list.php' => 'core/page-list', + 'paragraph.php' => 'core/paragraph', 'page-list-item.php' => 'core/page-list-item', 'pattern.php' => 'core/pattern', 'post-author.php' => 'core/post-author', diff --git a/packages/block-editor/src/components/block-draggable/test/__snapshots__/index.native.js.snap b/packages/block-editor/src/components/block-draggable/test/__snapshots__/index.native.js.snap index 1c2dc4c68a0ab5..6b8eced6ea0c3a 100644 --- a/packages/block-editor/src/components/block-draggable/test/__snapshots__/index.native.js.snap +++ b/packages/block-editor/src/components/block-draggable/test/__snapshots__/index.native.js.snap @@ -2,7 +2,7 @@ exports[`BlockDraggable moves blocks: Initial order 1`] = ` " -This is a paragraph.
+This is a paragraph.
@@ -30,7 +30,7 @@ exports[`BlockDraggable moves blocks: Paragraph block moved from first to second -This is a paragraph.
+This is a paragraph.
@@ -58,7 +58,7 @@ exports[`BlockDraggable moves blocks: Spacer block moved from third to first pos -This is a paragraph.
+This is a paragraph.
diff --git a/packages/block-editor/src/components/block-draggable/test/index.native.js b/packages/block-editor/src/components/block-draggable/test/index.native.js index 3611f6669ef5d5..060cdad0a3c7dd 100644 --- a/packages/block-editor/src/components/block-draggable/test/index.native.js +++ b/packages/block-editor/src/components/block-draggable/test/index.native.js @@ -46,7 +46,7 @@ const BLOCKS = [ name: 'Paragraph', html: ` -This is a paragraph.
+This is a paragraph.
`, layout: { x: 0, y: 0, width: 100, height: 100 }, }, diff --git a/packages/block-editor/src/components/block-mover/test/__snapshots__/index.native.js.snap b/packages/block-editor/src/components/block-mover/test/__snapshots__/index.native.js.snap index 3f34bb39ef1422..1a6186d995898e 100644 --- a/packages/block-editor/src/components/block-mover/test/__snapshots__/index.native.js.snap +++ b/packages/block-editor/src/components/block-mover/test/__snapshots__/index.native.js.snap @@ -2,7 +2,7 @@ exports[`Block Mover Picker moving blocks disables the Move Down button for the last block 1`] = ` " -Hello!
+Hello!
@@ -16,7 +16,7 @@ exports[`Block Mover Picker moving blocks disables the Move Down button for the exports[`Block Mover Picker moving blocks disables the Move Up button for the first block 1`] = ` " -Hello!
+Hello!
@@ -34,7 +34,7 @@ exports[`Block Mover Picker moving blocks moves blocks up and down 1`] = ` -Hello!
+Hello!
diff --git a/packages/block-editor/src/components/block-patterns-list/stories/fixtures.js b/packages/block-editor/src/components/block-patterns-list/stories/fixtures.js index 7825ad0d1391c6..0c643250a9cc99 100644 --- a/packages/block-editor/src/components/block-patterns-list/stories/fixtures.js +++ b/packages/block-editor/src/components/block-patterns-list/stories/fixtures.js @@ -384,7 +384,7 @@ export default [ }, innerBlocks: [], originalContent: - 'Let
\'EM
Roll
Let
\'EM
Roll
Big
John
Patton
Big
John
Patton
Oceanic Inspiration
', + 'Oceanic Inspiration
', validationIssues: [], }, ], @@ -592,7 +592,7 @@ export default [ }, innerBlocks: [], originalContent: - 'Winding veils round their heads, the women walked on deck. They were now moving steadily down the river, passing the dark shapes of ships at anchor, and London was a swarm of lights with a pale yellow canopy drooping above it. There were the lights of the great theatres, the lights of the long streets, lights that indicated huge squares of domestic comfort, lights that hung high in air.
', + 'Winding veils round their heads, the women walked on deck. They were now moving steadily down the river, passing the dark shapes of ships at anchor, and London was a swarm of lights with a pale yellow canopy drooping above it. There were the lights of the great theatres, the lights of the long streets, lights that indicated huge squares of domestic comfort, lights that hung high in air.
', validationIssues: [], }, ], @@ -625,7 +625,7 @@ export default [ }, innerBlocks: [], originalContent: - 'No darkness would ever settle upon those lamps, as no darkness had settled upon them for hundreds of years. It seemed dreadful that the town should blaze for ever in the same spot; dreadful at least to people going away to adventure upon the sea, and beholding it as a circumscribed mound, eternally burnt, eternally scarred. From the deck of the ship the great city appeared a crouched and cowardly figure, a sedentary miser.
', + 'No darkness would ever settle upon those lamps, as no darkness had settled upon them for hundreds of years. It seemed dreadful that the town should blaze for ever in the same spot; dreadful at least to people going away to adventure upon the sea, and beholding it as a circumscribed mound, eternally burnt, eternally scarred. From the deck of the ship the great city appeared a crouched and cowardly figure, a sedentary miser.
', validationIssues: [], }, ], @@ -737,7 +737,7 @@ export default [ }, innerBlocks: [], originalContent: - '✴︎ Walk
', + '✴︎ Walk
', validationIssues: [], }, { @@ -763,7 +763,7 @@ export default [ }, innerBlocks: [], originalContent: - 'In the
', + 'In the
', validationIssues: [], }, { @@ -789,7 +789,7 @@ export default [ }, innerBlocks: [], originalContent: - 'Park
', + 'Park
', validationIssues: [], }, { @@ -817,7 +817,7 @@ export default [ }, innerBlocks: [], originalContent: - '—01.03
', + '—01.03
', validationIssues: [], }, ], diff --git a/packages/block-editor/src/components/block-toolbar/test/__snapshots__/block-toolbar-menu.native.js.snap b/packages/block-editor/src/components/block-toolbar/test/__snapshots__/block-toolbar-menu.native.js.snap index 6e6c832d5bd52b..56347adcf21157 100644 --- a/packages/block-editor/src/components/block-toolbar/test/__snapshots__/block-toolbar-menu.native.js.snap +++ b/packages/block-editor/src/components/block-toolbar/test/__snapshots__/block-toolbar-menu.native.js.snap @@ -2,7 +2,7 @@ exports[`Block Actions Menu block options copies and pastes a block 1`] = ` " -Hello!
+Hello!
@@ -28,13 +28,13 @@ exports[`Block Actions Menu block options cuts and pastes a block 1`] = ` -Hello!
+Hello!
" `; exports[`Block Actions Menu block options does not replace a non empty Paragraph block when pasting another block 1`] = ` " -Hello!
+Hello!
@@ -52,7 +52,7 @@ exports[`Block Actions Menu block options does not replace a non empty Paragraph exports[`Block Actions Menu block options duplicates a block 1`] = ` " -Hello!
+Hello!
@@ -84,7 +84,7 @@ exports[`Block Actions Menu block options transforms a Paragraph block into a Pu exports[`Block Actions Menu moving blocks disables the Move Down button for the last block 1`] = ` " -Hello!
+Hello!
@@ -98,7 +98,7 @@ exports[`Block Actions Menu moving blocks disables the Move Down button for the exports[`Block Actions Menu moving blocks disables the Move Up button for the first block 1`] = ` " -Hello!
+Hello!
@@ -116,7 +116,7 @@ exports[`Block Actions Menu moving blocks moves blocks up and down 1`] = ` -Hello!
+Hello!
diff --git a/packages/block-editor/src/components/block-toolbar/test/block-toolbar-menu.native.js b/packages/block-editor/src/components/block-toolbar/test/block-toolbar-menu.native.js index 6e26b906d68c9a..8bf5f567537c7a 100644 --- a/packages/block-editor/src/components/block-toolbar/test/block-toolbar-menu.native.js +++ b/packages/block-editor/src/components/block-toolbar/test/block-toolbar-menu.native.js @@ -34,7 +34,7 @@ describe( 'Block Actions Menu', () => { it( "renders the block name in the Picker's header", async () => { const screen = await initializeEditor( { initialHtml: ` - + `, } ); const { getByRole } = screen; diff --git a/packages/block-editor/src/components/inserter/test/__snapshots__/index.native.js.snap b/packages/block-editor/src/components/inserter/test/__snapshots__/index.native.js.snap index f53e11c9e310bb..95fb2a71170813 100644 --- a/packages/block-editor/src/components/inserter/test/__snapshots__/index.native.js.snap +++ b/packages/block-editor/src/components/inserter/test/__snapshots__/index.native.js.snap @@ -24,7 +24,7 @@ exports[`Inserter can add blocks after another block 1`] = ` - + " `; @@ -34,7 +34,7 @@ exports[`Inserter can add blocks before another block 1`] = ` - + " `; @@ -48,7 +48,7 @@ exports[`Inserter can add blocks creates a new Paragraph block tapping on the em - + " `; @@ -94,7 +94,7 @@ exports[`Inserter can add blocks to the beginning 1`] = ` - + " `; @@ -108,7 +108,7 @@ exports[`Inserter can add blocks to the end 1`] = ` - + diff --git a/packages/block-editor/src/components/rich-text/native/test/__snapshots__/index.native.js.snap b/packages/block-editor/src/components/rich-text/native/test/__snapshots__/index.native.js.snap index 84e9b467132714..88905c1874fdf0 100644 --- a/packages/block-editor/src/components/rich-text/native/test/__snapshots__/index.native.js.snap +++ b/packages/block-editor/src/components/rich-text/native/test/__snapshots__/index.native.js.snap @@ -2,7 +2,7 @@ exports[`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet ut nibh vitae ornare. Sed auctor nec augue at blandit.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet ut nibh vitae ornare. Sed auctor nec augue at blandit.
" `; diff --git a/packages/block-editor/src/components/rich-text/native/test/index.native.js b/packages/block-editor/src/components/rich-text/native/test/index.native.js index 26b6d6c5358ec5..4157d320b6e2f8 100644 --- a/packages/block-editor/src/components/rich-text/native/test/index.native.js +++ b/packages/block-editor/src/components/rich-text/native/test/index.native.js @@ -310,7 +310,7 @@ describe( 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet ut nibh vitae ornare. Sed auctor nec augue at blandit.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed imperdiet ut nibh vitae ornare. Sed auctor nec augue at blandit.
`; // Act. await initializeEditor( { initialHtml } ); diff --git a/packages/block-editor/src/hooks/test/__snapshots__/align.native.js.snap b/packages/block-editor/src/hooks/test/__snapshots__/align.native.js.snap index 045fb0e3bd944a..53a5884b2b90cb 100644 --- a/packages/block-editor/src/hooks/test/__snapshots__/align.native.js.snap +++ b/packages/block-editor/src/hooks/test/__snapshots__/align.native.js.snap @@ -56,18 +56,18 @@ exports[`Align options for media block sets Wide width option 1`] = ` exports[`Align options for text block sets Align text center option 1`] = ` " - + " `; exports[`Align options for text block sets Align text left option 1`] = ` " - + " `; exports[`Align options for text block sets Align text right option 1`] = ` " - + " `; diff --git a/packages/block-editor/src/hooks/test/__snapshots__/anchor.native.js.snap b/packages/block-editor/src/hooks/test/__snapshots__/anchor.native.js.snap index 03407a1fe55d85..bf95450805a45e 100644 --- a/packages/block-editor/src/hooks/test/__snapshots__/anchor.native.js.snap +++ b/packages/block-editor/src/hooks/test/__snapshots__/anchor.native.js.snap @@ -2,6 +2,6 @@ exports[`anchor should set the ID attribute on the block 1`] = ` " - + " `; diff --git a/packages/block-library/src/block/test/edit.native.js b/packages/block-library/src/block/test/edit.native.js index 46c6d39034f8b0..0a6c94182281a2 100644 --- a/packages/block-library/src/block/test/edit.native.js +++ b/packages/block-library/src/block/test/edit.native.js @@ -29,7 +29,7 @@ const getMockedReusableBlock = ( id ) => ( { -Bold Italic Striked Superscript(1) Subscript(2) Link
Bold Italic Striked Superscript(1) Subscript(2) Link
Built with modern technology.
+Built with modern technology.
-Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
+Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
- +Designed for compatibility.
+Designed for compatibility.
-We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
+We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
- +Built with modern technology.
+Built with modern technology.
-Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
+Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
- + -Designed for compatibility.
+Designed for compatibility.
-We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
+We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
- + " `; diff --git a/packages/block-library/src/columns/test/edit.native.js b/packages/block-library/src/columns/test/edit.native.js index 20430704c8e1e2..7a3c38ef39d62d 100644 --- a/packages/block-library/src/columns/test/edit.native.js +++ b/packages/block-library/src/columns/test/edit.native.js @@ -472,7 +472,7 @@ describe( 'Columns block', () => {Built with modern technology.
+Built with modern technology.
-Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
+Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
- +Designed for compatibility.
+Designed for compatibility.
-We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
+We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
- +








Cool cover
+Cool cover

Cool cover
+Cool cover

Cool cover
+Cool cover
Cool cover
+Cool cover
Cool cover
+Cool cover
Cool cover
+Cool cover



Cool cover
+Cool cover
Cool cover
+Cool cover
https://www.youtube.com/watch?v=lXMskKTw3Bc
+https://www.youtube.com/watch?v=lXMskKTw3Bc
" `; @@ -134,7 +134,7 @@ https://twitter.com/notnownikki exports[`Embed block retry converts to link if preview request failed 1`] = ` " -https://twitter.com/notnownikki
+https://twitter.com/notnownikki
" `; diff --git a/packages/block-library/src/embed/test/index.native.js b/packages/block-library/src/embed/test/index.native.js index 59e4cfe51fccec..07a28278d901ca 100644 --- a/packages/block-library/src/embed/test/index.native.js +++ b/packages/block-library/src/embed/test/index.native.js @@ -115,7 +115,7 @@ https://wordpress.org/news/2021/07/tatum/ `; const EMPTY_PARAGRAPH_HTML = - ''; + ''; const MOST_USED_PROVIDERS = embed.settings.variations.filter( ( { name } ) => [ 'youtube', 'twitter', 'wordpress', 'vimeo' ].includes( name ) diff --git a/packages/block-library/src/freeform/test/__snapshots__/index.native.js.snap b/packages/block-library/src/freeform/test/__snapshots__/index.native.js.snap index aad87487b93bec..538d36bfb897f7 100644 --- a/packages/block-library/src/freeform/test/__snapshots__/index.native.js.snap +++ b/packages/block-library/src/freeform/test/__snapshots__/index.native.js.snap @@ -2,6 +2,6 @@ exports[`Classic block converts content into blocks 1`] = ` " -I'm classic!
+I'm classic!
" `; diff --git a/packages/block-library/src/group/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/group/test/__snapshots__/transforms.native.js.snap index ca0bd5b36ee0c4..6f9726a97a0661 100644 --- a/packages/block-library/src/group/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/group/test/__snapshots__/transforms.native.js.snap @@ -5,15 +5,15 @@ exports[`Group block transforms to Columns block 1`] = `One.
+One.
-Two
+Two
-Three.
+Three.
One.
+One.
-Two
+Two
-Three.
+Three.
" `; diff --git a/packages/block-library/src/group/test/transforms.native.js b/packages/block-library/src/group/test/transforms.native.js index 9293482f119055..abfffdcb387a51 100644 --- a/packages/block-library/src/group/test/transforms.native.js +++ b/packages/block-library/src/group/test/transforms.native.js @@ -16,15 +16,15 @@ const block = 'Group'; const initialHtml = `One.
+One.
-Two
+Two
-Three.
+Three.
A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" `; diff --git a/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap index c773f863077715..1b1274e9c51e19 100644 --- a/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/heading/test/__snapshots__/transforms.native.js.snap @@ -28,7 +28,7 @@ exports[`Heading block transforms to List block 1`] = ` exports[`Heading block transforms to Paragraph block 1`] = ` " -Example text
+Example text
" `; diff --git a/packages/block-library/src/image/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/image/test/__snapshots__/transforms.native.js.snap index 338848fcae1c68..18ae54d8351ba4 100644 --- a/packages/block-library/src/image/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/image/test/__snapshots__/transforms.native.js.snap @@ -13,7 +13,7 @@ exports[`Image block transformations to Columns block 1`] = ` exports[`Image block transformations to Cover block 1`] = ` "
Mountain
+Mountain

First Item
+First Item
-Second Item
+Second Item
-Third Item
+Third Item
" `; diff --git a/packages/block-library/src/list/test/edit.native.js b/packages/block-library/src/list/test/edit.native.js index 3084b11ecbd146..30e05ea252e9dd 100644 --- a/packages/block-library/src/list/test/edit.native.js +++ b/packages/block-library/src/list/test/edit.native.js @@ -374,7 +374,7 @@ describe( 'List block', () => { - + @@ -393,7 +393,7 @@ describe( 'List block', () => { -Two
+Two
@@ -481,7 +481,7 @@ describe( 'List block', () => { it( 'unwraps first item when attempting to merge with non-list block', async () => { const initialHtml = ` -A quick brown fox.
+A quick brown fox.
A quick brown fox.
+A quick brown fox.
-One
+One
@@ -534,7 +534,7 @@ describe( 'List block', () => { it( 'merges first item into its own paragraph block and keeps its nested items', async () => { const initialHtml = ` -A quick brown fox.
+A quick brown fox.
A quick brown fox.
+A quick brown fox.
-One
+One
diff --git a/packages/block-library/src/media-text/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/media-text/test/__snapshots__/transforms.native.js.snap index b479b281be720f..5fbb5e5d9d789f 100644 --- a/packages/block-library/src/media-text/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/media-text/test/__snapshots__/transforms.native.js.snap @@ -5,7 +5,7 @@ exports[`Media & Text block transformations with Image to Columns block 1`] = `
Mountain
+Mountain

Mountain
+Mountain

Mountain
+Mountain
Cloudup
+Cloudup
Cloudup
+Cloudup
Cloudup
+Cloudup

Mountain
+Mountain
Cloudup
+Cloudup
Hello World
+ * + * @since 6.9.0 + * + * @param array $attributes Attributes of the block being rendered. + * @param string $content Content of the block being rendered. + * + * @return string The content of the block being rendered. + */ +function block_core_paragraph_render( $attributes, $content ) { + if ( ! $content ) { + return $content; + } + + $processor = new WP_HTML_Tag_Processor( $content ); + + while ( $processor->next_tag( 'P' ) ) { + $processor->add_class( 'wp-block-paragraph' ); + break; + } + + return $processor->get_updated_html(); +} + +/** + * Registers the `core/paragraph` block on server. + * + * @since 6.9.0 + */ +function register_block_core_paragraph() { + register_block_type_from_metadata( + __DIR__ . '/paragraph', + array( + 'render_callback' => 'block_core_paragraph_render', + ) + ); +} + +add_action( 'init', 'register_block_core_paragraph' ); diff --git a/packages/block-library/src/paragraph/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/paragraph/test/__snapshots__/edit.native.js.snap index 82b6a608814a72..34e5104a6ca574 100644 --- a/packages/block-library/src/paragraph/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/paragraph/test/__snapshots__/edit.native.js.snap @@ -17,7 +17,7 @@ exports[`Paragraph block should be able to use a prefix to create a List block 1 exports[`Paragraph block should be able to use a prefix to create a Quote block 1`] = ` "- +" `; @@ -32,7 +32,7 @@ exports[`Paragraph block should be able to use a prefix to create a numbered Lis exports[`Paragraph block should prevent deleting the first Paragraph block when pressing backspace at the start 1`] = ` " -
A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" `; @@ -77,12 +77,12 @@ exports[`Paragraph block should render without crashing and match snapshot 1`] = exports[`Paragraph block should set a font size value 1`] = ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" `; exports[`Paragraph block should set a line height value 1`] = ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" `; diff --git a/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap index 3a2a928b81f5e8..aca30f8514b2ed 100644 --- a/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/paragraph/test/__snapshots__/transforms.native.js.snap @@ -10,7 +10,7 @@ exports[`Paragraph block transforms to Columns block 1`] = ` "Example text
+Example text
Example text
+Example text
-" `; diff --git a/packages/block-library/src/paragraph/test/edit.native.js b/packages/block-library/src/paragraph/test/edit.native.js index c3c7e7ca49d720..c932825bb898fe 100644 --- a/packages/block-library/src/paragraph/test/edit.native.js +++ b/packages/block-library/src/paragraph/test/edit.native.js @@ -209,7 +209,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -Example text
+Example text
A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -234,7 +234,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -259,7 +259,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
A quick brown fox jumps over the lazy dog.
A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -309,7 +309,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -334,7 +334,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -400,11 +400,11 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jum
+A quick brown fox jum
-ps over the lazy dog.
+ps over the lazy dog.
" ` ); } ); @@ -442,7 +442,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " - + " ` ); } ); @@ -485,7 +485,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -521,7 +521,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); @@ -547,7 +547,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -some text
+some text
" ` ); } ); @@ -589,7 +589,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -627,7 +627,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -674,7 +674,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -683,7 +683,7 @@ describe( 'Paragraph block', () => { // Arrange const screen = await initializeEditor( { initialHtml: ` -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
`, } ); @@ -719,7 +719,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -789,7 +789,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); @@ -798,7 +798,7 @@ describe( 'Paragraph block', () => { // Arrange const screen = await initializeEditor( { initialHtml: ` -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
`, } ); @@ -845,7 +845,7 @@ describe( 'Paragraph block', () => { // Assert expect( getEditorHtml() ).toMatchInlineSnapshot( ` " -A quick brown fox jumps over the lazy dog.
+A quick brown fox jumps over the lazy dog.
" ` ); } ); diff --git a/packages/block-library/src/paragraph/test/transforms.native.js b/packages/block-library/src/paragraph/test/transforms.native.js index bb2d14a9966252..f14dca94dad711 100644 --- a/packages/block-library/src/paragraph/test/transforms.native.js +++ b/packages/block-library/src/paragraph/test/transforms.native.js @@ -12,7 +12,7 @@ import { const block = 'Paragraph'; const initialHtml = ` -Example text
+Example text
`; // NOTE: Paragraph block can be transformed to Buttons block in web, diff --git a/packages/block-library/src/preformatted/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/preformatted/test/__snapshots__/transforms.native.js.snap index 1d722cce98cedb..53c16d37ff8078 100644 --- a/packages/block-library/src/preformatted/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/preformatted/test/__snapshots__/transforms.native.js.snap @@ -26,7 +26,7 @@ exports[`Preformatted block transforms to Group block 1`] = ` exports[`Preformatted block transforms to Paragraph block 1`] = ` " -Some preformatted text...
And more!
Some preformatted text...
And more!
One of the hardest things to do in technology is disrupt yourself.
+One of the hardest things to do in technology is disrupt yourself.
-Matt Mullenweg
+Matt Mullenweg
" `; exports[`Pullquote block transforms to Quote block 1`] = ` "-" `; diff --git a/packages/block-library/src/pullquote/test/edit.native.js b/packages/block-library/src/pullquote/test/edit.native.js index c53ad24a33f028..d4b86d315fb0df 100644 --- a/packages/block-library/src/pullquote/test/edit.native.js +++ b/packages/block-library/src/pullquote/test/edit.native.js @@ -66,7 +66,7 @@ describe( 'Pullquote', () => { - + " ` ); } ); diff --git a/packages/block-library/src/quote/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/quote/test/__snapshots__/transforms.native.js.snap index edd5c40ae916ba..d149ff727d634b 100644 --- a/packages/block-library/src/quote/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/quote/test/__snapshots__/transforms.native.js.snap @@ -5,7 +5,7 @@ exports[`Quote block transforms to Columns block 1`] = `One of the hardest things to do in technology is disrupt yourself.
+One of the hardest things to do in technology is disrupt yourself.
Matt Mullenweg
-"This will make running your own blog a viable alternative again."
+"This will make running your own blog a viable alternative again."
— Adrian Zumbrunnen
-"This will make running your own blog a viable alternative again."
+"This will make running your own blog a viable alternative again."
— Adrian Zumbrunnen
"This will make running your own blog a viable alternative again."
+"This will make running your own blog a viable alternative again."
- + " `; @@ -40,10 +40,10 @@ exports[`Quote block transforms to Pullquote block 1`] = ` exports[`Quote block transforms ungroups block 1`] = ` " -"This will make running your own blog a viable alternative again."
+"This will make running your own blog a viable alternative again."
- + " `; diff --git a/packages/block-library/src/quote/test/edit.native.js b/packages/block-library/src/quote/test/edit.native.js index c7479f611fa8b8..e05c70c6b6c26e 100644 --- a/packages/block-library/src/quote/test/edit.native.js +++ b/packages/block-library/src/quote/test/edit.native.js @@ -78,16 +78,16 @@ describe( 'Quote', () => { expect( getEditorHtml() ).toMatchInlineSnapshot( ` "-- + " ` ); } ); diff --git a/packages/block-library/src/quote/test/migrate.js b/packages/block-library/src/quote/test/migrate.js index d1107473c1b5df..f8278883cbc9cd 100644 --- a/packages/block-library/src/quote/test/migrate.js +++ b/packages/block-library/src/quote/test/migrate.js @@ -37,11 +37,11 @@ describe( 'Migrate quote block', () => { } ); expect( serialize( innerBlocks ) ).toEqual( ` -A great statement.
+A great statement.
-Again.
+Again.
A
person
First paragraph
+First paragraph
-Second paragraph
+Second paragraph
` ); } ); @@ -56,7 +56,7 @@ describe( 'Migrate quote block', () => { } ); expect( serialize( innerBlocks ) ).toEqual( ` - + ` ); } ); @@ -71,15 +71,15 @@ describe( 'Migrate quote block', () => { } ); expect( serialize( innerBlocks ) ).toEqual( ` -Bold
+Bold
-and
+and
-italic
+italic
` ); } ); diff --git a/packages/block-library/src/quote/test/transforms.native.js b/packages/block-library/src/quote/test/transforms.native.js index 3d2bc8ae609182..c8ccc6ac22c82b 100644 --- a/packages/block-library/src/quote/test/transforms.native.js +++ b/packages/block-library/src/quote/test/transforms.native.js @@ -16,7 +16,7 @@ const block = 'Quote'; const initialHtml = `-`; diff --git a/packages/block-library/src/social-links/test/__snapshots__/edit.native.js.snap b/packages/block-library/src/social-links/test/__snapshots__/edit.native.js.snap index 797a63c47530f1..bc12879b089535 100644 --- a/packages/block-library/src/social-links/test/__snapshots__/edit.native.js.snap +++ b/packages/block-library/src/social-links/test/__snapshots__/edit.native.js.snap @@ -24,7 +24,7 @@ exports[`Social links block shows active links correctly when not selected 1`] = - + " `; @@ -38,7 +38,7 @@ exports[`Social links block shows the ghost placeholder when no icon is active 1 - + " `; diff --git a/packages/block-library/src/verse/test/__snapshots__/transforms.native.js.snap b/packages/block-library/src/verse/test/__snapshots__/transforms.native.js.snap index 28e42c37c56092..150363ac4b5df5 100644 --- a/packages/block-library/src/verse/test/__snapshots__/transforms.native.js.snap +++ b/packages/block-library/src/verse/test/__snapshots__/transforms.native.js.snap @@ -20,7 +20,7 @@ exports[`Verse block transforms to Group block 1`] = ` exports[`Verse block transforms to Paragraph block 1`] = ` " -"This will make running your own blog a viable alternative again."
+"This will make running your own blog a viable alternative again."
— Adrian Zumbrunnen
Come
Home.
Come
Home.
Cloudup video
+Cloudup video
Left
+Left
Middle
+Middle
Left
+ *Left
*Middle
+ *Middle
*A
+A
D
+D
A
', - innerContent: [ 'A
' ], + innerHTML: 'A
', + innerContent: [ + 'A
', + ], }, ], innerHTML: '', @@ -74,8 +76,11 @@ describe( 'serializeRawBlock', () => { blockName: 'core/paragraph', attrs: {}, innerBlocks: [], - innerHTML: 'D
', - innerContent: [ 'D
' ], + innerHTML: + 'D
', + innerContent: [ + 'D
', + ], }, ], innerHTML: '', diff --git a/packages/core-data/src/entity-types/README.md b/packages/core-data/src/entity-types/README.md index 10d2a2be75e639..64d59300ad743e 100644 --- a/packages/core-data/src/entity-types/README.md +++ b/packages/core-data/src/entity-types/README.md @@ -35,7 +35,7 @@ While requesting `/wp/v2/posts/1?context=edit`, yields: "content": { "block_version": 1, "protected": false, - "raw": "\nWelcome to WordPress. This is your first post. Edit or delete it, then start writing!
\n", + "raw": "\nWelcome to WordPress. This is your first post. Edit or delete it, then start writing!
\n", "rendered": "\nWelcome to WordPress. This is your first post. Edit or delete it, then start writing!
\n" }, "title": { diff --git a/packages/e2e-tests/plugins/allowed-patterns.php b/packages/e2e-tests/plugins/allowed-patterns.php index b598cb6c0b82e7..42035bc6c0e76b 100644 --- a/packages/e2e-tests/plugins/allowed-patterns.php +++ b/packages/e2e-tests/plugins/allowed-patterns.php @@ -19,7 +19,7 @@ 'test-allowed-patterns/lone-paragraph', array( 'title' => 'Test: Single paragraph', - 'content' => 'Hello!
', + 'content' => 'Hello!
', ) ); @@ -27,6 +27,6 @@ 'test-allowed-patterns/paragraph-inside-group', array( 'title' => 'Test: Paragraph inside group', - 'content' => 'Hello!
Hello!
This is a plugin-registered template.
This is a plugin-registered template.
This is a plugin-registered template and overridden by a theme.
This is a plugin-registered template and overridden by a theme.
This is a plugin-registered template that is also unregistered.
This is a plugin-registered template that is also unregistered.
This is a plugin-registered page template.
This is a plugin-registered page template.
This is a plugin-registered author template.
This is a plugin-registered author template.
Hello
', + 'content' => 'Hello
', ) ); } diff --git a/packages/edit-post/src/components/visual-editor/test/__snapshots__/index.native.js.snap b/packages/edit-post/src/components/visual-editor/test/__snapshots__/index.native.js.snap index de7091fa947357..d4160aba013670 100644 --- a/packages/edit-post/src/components/visual-editor/test/__snapshots__/index.native.js.snap +++ b/packages/edit-post/src/components/visual-editor/test/__snapshots__/index.native.js.snap @@ -2,11 +2,11 @@ exports[`when nothing is selected media buttons and picker display correctly 1`] = ` " -First example paragraph.
+First example paragraph.
-Second example paragraph.
+Second example paragraph.
diff --git a/packages/edit-post/src/components/visual-editor/test/index.native.js b/packages/edit-post/src/components/visual-editor/test/index.native.js index 8c6e041880a830..d42778bb0475a1 100644 --- a/packages/edit-post/src/components/visual-editor/test/index.native.js +++ b/packages/edit-post/src/components/visual-editor/test/index.native.js @@ -30,11 +30,11 @@ const MEDIA_OPTIONS = [ const initialHtml = ` -First example paragraph.
+First example paragraph.
-Second example paragraph.
+Second example paragraph.
`; diff --git a/packages/edit-post/src/test/__snapshots__/editor.native.js.snap b/packages/edit-post/src/test/__snapshots__/editor.native.js.snap index 4a88b249a1db66..876d6206f7cc42 100644 --- a/packages/edit-post/src/test/__snapshots__/editor.native.js.snap +++ b/packages/edit-post/src/test/__snapshots__/editor.native.js.snap @@ -34,7 +34,7 @@ exports[`Editor appends media correctly for allowed types and skips unsupported exports[`Editor on content update parses markdown into blocks 1`] = ` " -Lorem ipsum dolor sit amet, consectetur adipiscing
elit.
Lorem ipsum dolor sit amet, consectetur adipiscing
elit.
This is a paragraph.
+This is a paragraph.
" `; @@ -20,6 +20,6 @@ exports[`PostTitle populates empty title with first block content when pasting H -This is a paragraph.
+This is a paragraph.
" `; diff --git a/packages/format-library/src/text-color/test/__snapshots__/index.native.js.snap b/packages/format-library/src/text-color/test/__snapshots__/index.native.js.snap index 8b64c8e7987915..5952b4ccd42ebc 100644 --- a/packages/format-library/src/text-color/test/__snapshots__/index.native.js.snap +++ b/packages/format-library/src/text-color/test/__snapshots__/index.native.js.snap @@ -2,22 +2,22 @@ exports[`Text color allows toggling the highlight color feature to selected text 1`] = ` " -Hello this is a test
+Hello this is a test
" `; exports[`Text color creates a paragraph block with the text color format 1`] = ` " -Hello this is a test
+Hello this is a test
" `; exports[`Text color supports old text color format using "span" tag 1`] = ` " -this is test
+this is test
-this is a test
+this is a test
" `; diff --git a/packages/format-library/src/text-color/test/index.native.js b/packages/format-library/src/text-color/test/index.native.js index c206f858070622..189820def5dd0b 100644 --- a/packages/format-library/src/text-color/test/index.native.js +++ b/packages/format-library/src/text-color/test/index.native.js @@ -30,7 +30,7 @@ const COLOR_PINK = '#f78da7'; const paragraph = coreBlocks[ 'core/paragraph' ]; const TEXT_WITH_COLOR = ` -Hello this is a test
+Hello this is a test
`; beforeAll( () => { @@ -131,11 +131,11 @@ describe( 'Text color', () => { it( 'supports old text color format using "span" tag', async () => { await initializeEditor( { initialHtml: ` -this is test
+this is test
-this is a test
+this is a test
`, } ); diff --git a/packages/react-native-editor/__device-tests__/helpers/test-data.js b/packages/react-native-editor/__device-tests__/helpers/test-data.js index b2310cd51aa377..19691bcbdacb48 100644 --- a/packages/react-native-editor/__device-tests__/helpers/test-data.js +++ b/packages/react-native-editor/__device-tests__/helpers/test-data.js @@ -6,7 +6,7 @@ exports.mediumText = `The finer continuum interprets the polynomial rabbit. When exports.slashInserter = '/'; -exports.longText = `Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree +exports.longText = `Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?`; @@ -23,14 +23,14 @@ exports.listEndedHtml = ` - + `; exports.heading = 'Lorem Ipsum'; exports.pastePlainText = `Hello paste`; const pastedHtmlText = ` -Hello paste
+Hello paste
`; exports.pasteHtmlText = pastedHtmlText; @@ -38,43 +38,43 @@ exports.pasteHtmlText = pastedHtmlText; exports.pasteHtmlTextResult = `${ pastedHtmlText }\n\n${ pastedHtmlText }`; exports.deviceRotationHtml = ` -The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
-The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
`; exports.blockInsertionHtml = ` -Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree
+Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree
-Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind
+Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind
-The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
-The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
`; exports.blockInsertionHtmlFromTitle = ` -The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
-Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree
+Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree
-Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind
+Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind
-The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
`; exports.imageCaption = `Autumn meets winter`; @@ -84,15 +84,15 @@ exports.imageCompletehtml = ` -Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree
+Beneath the busy continuum blinks the ineffective husband. Why a metric now outside the official subway? How can the prompt crop exhaust his tree
-Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind
+Does this chord crowd my emptied search? A theory bubbles under the cartoon. The discontinued speaker cracks every thick epic. extraordinary twin shifts behind
-The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
+The finer continuum interprets the polynomial rabbit. When can the geology runs? An astronomer runs. Should a communist consent?
`; exports.imageShortHtml = ` @@ -126,7 +126,7 @@ exports.columnsWithDifferentUnitsHtml = ` exports.coverHeightWithRemUnit = `Rock music approaches at high velocity.
+Rock music approaches at high velocity.
`; exports.multiLinesParagraphBlock = ` -multiple lines
multiple lines
multiple lines
multiple lines
multiple lines
multiple lines
ABCD
+ABCD
`; exports.spacerBlock = ` @@ -215,7 +215,7 @@ exports.galleryBlockTwoImages = `Level 1
+Level 1
@@ -224,7 +224,7 @@ exports.groupNestedStructure = `Level 2
+Level 2
@@ -233,7 +233,7 @@ exports.groupNestedStructure = `Level 3
+wp-block-paragraph has-background" style="background-color:#c3e5ff">Level 3 diff --git a/packages/react-native-editor/src/initial-html.js b/packages/react-native-editor/src/initial-html.js index 684ca0dfbf8de4..50d38de345e264 100644 --- a/packages/react-native-editor/src/initial-html.js +++ b/packages/react-native-editor/src/initial-html.js @@ -3,7 +3,7 @@ export const textBlocks = ` -Bold Italic Striked Superscript(1) Subscript(2) Link
Bold Italic Striked Superscript(1) Subscript(2) Link
-@@ -35,7 +35,7 @@ export const textBlocks = ` -"This will make running your own blog a viable alternative again."
+"This will make running your own blog a viable alternative again."
— Adrian Zumbrunnen
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer tempor tincidunt sapien, quis dictum orci sollicitudin quis. Proin sed elit id est pulvinar feugiat vitae eget dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
@@ -146,13 +146,13 @@ export const mediaBlocks = `
Cool cover
+Cool cover
One.
+One.
-Two
+Two
-Three.
+Three.
Built with modern technology.
+Built with modern technology.
-Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
+Gutenberg was developed on GitHub using the WordPress REST API, JavaScript, and React.
- +Designed for compatibility.
+Designed for compatibility.
-We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
+We recommend migrating features to blocks, but support for existing WordPress functionality remains. There will be transition paths for shortcodes, meta-boxes, and Custom Post Types.
- +${ innerContent }
`; + const originalBlockHtml = `${ innerContent }
`; const gbBlockHtml = ` diff --git a/packages/report-flaky-tests/src/__fixtures__/should copy only partial selection of text blocks.json b/packages/report-flaky-tests/src/__fixtures__/should copy only partial selection of text blocks.json index 3a6e7b82dc2444..c394719099ffda 100644 --- a/packages/report-flaky-tests/src/__fixtures__/should copy only partial selection of text blocks.json +++ b/packages/report-flaky-tests/src/__fixtures__/should copy only partial selection of text blocks.json @@ -25,13 +25,13 @@ "status": "failed", "errors": [ { - "message": "\u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m", - "stack": "Error: \u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m\n at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:253:52" + "message": "\u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m", + "stack": "Error: \u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m\n at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:253:52" } ], "error": { - "message": "\u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m", - "stack": "Error: \u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m\n at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:253:52" + "message": "\u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m", + "stack": "Error: \u001b[31mSnapshot comparison failed:\u001b[39m\n\n \nblock
\n \n\n \nB
\n \n\n \nA \u001b[0m\u001b[9m\u001b[31mblock\u001b[39m\u001b[29m\u001b[0m\u001b[32m
\u001b[39m\n \u001b[32m\u001b[39m\n\n \u001b[32m\u001b[39m\n \u001b[32m\u001b[39m
\n \n\n \n\u001b[0m\u001b[9m\u001b[31mB \u001b[39m\u001b[29m\u001b[0mblock
\n \n\nExpected: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt\u001b[39m\nReceived: \u001b[33m/home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-actual.txt\u001b[39m\n at /home/runner/work/gutenberg/gutenberg/test/e2e/specs/editor/various/copy-cut-paste.spec.js:253:52" } } ] diff --git a/packages/report-flaky-tests/src/__tests__/__snapshots__/markdown.test.ts.snap b/packages/report-flaky-tests/src/__tests__/__snapshots__/markdown.test.ts.snap index c7c4e329955e11..ee62a61ab6a094 100644 --- a/packages/report-flaky-tests/src/__tests__/__snapshots__/markdown.test.ts.snap +++ b/packages/report-flaky-tests/src/__tests__/__snapshots__/markdown.test.ts.snap @@ -4,23 +4,23 @@ exports[`formatTestErrorMessage should format test error message for @playwright "Error: Snapshot comparison failed: -block
+block
-B
+B
-A block
+A block
- + -B block
+B block
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt diff --git a/packages/report-flaky-tests/src/__tests__/__snapshots__/run.test.ts.snap b/packages/report-flaky-tests/src/__tests__/__snapshots__/run.test.ts.snap index 8920f757c0efc6..ec5b22e0fda47b 100644 --- a/packages/report-flaky-tests/src/__tests__/__snapshots__/run.test.ts.snap +++ b/packages/report-flaky-tests/src/__tests__/__snapshots__/run.test.ts.snap @@ -93,23 +93,23 @@ should copy only partial selection of text blocks Error: Snapshot comparison failed: -block
+block
-B
+B
-A block
+A block
- + -B block
+B block
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt @@ -276,23 +276,23 @@ should copy only partial selection of text blocks Error: Snapshot comparison failed: -block
+block
-B
+B
-A block
+A block
- + -B block
+B block
Expected: /home/runner/work/gutenberg/gutenberg/artifacts/test-results/editor-various-copy-cut-paste-Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-chromium/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-expected.txt diff --git a/phpunit/block-supports/elements-test.php b/phpunit/block-supports/elements-test.php index f7351c0eb26ab3..c980c78dd635ca 100644 --- a/phpunit/block-supports/elements-test.php +++ b/phpunit/block-supports/elements-test.php @@ -162,8 +162,8 @@ public function data_elements_block_support_class() { 'elements_styles' => array( 'link' => array( 'color' => $color_styles ), ), - 'block_markup' => 'Hello WordPress!
', - 'expected_markup' => '/^Hello WordPress<\/a>!<\/p>$/',
+ 'block_markup' => ' Hello WordPress! Hello World
Hello World
', + 'Hello World
', + ), + 'should add a class name even when the class attribute is surrounded by other attributes' => array( + 'Hello World
', + 'Hello World
', + ), + 'should add a class name without getting confused when there is a tricky data-class attribute present' => array( + 'Hello World
', + 'Hello World
', + ), + ); + } +} diff --git a/phpunit/class-wp-theme-json-test.php b/phpunit/class-wp-theme-json-test.php index 9f9ae7a26f2998..795eda831a2243 100644 --- a/phpunit/class-wp-theme-json-test.php +++ b/phpunit/class-wp-theme-json-test.php @@ -5144,7 +5144,7 @@ public function test_get_shadow_styles_for_blocks() { ); $variable_styles = ':root{--wp--preset--shadow--natural: 5px 5px 0 0 black;}'; - $element_styles = 'a:where(:not(.wp-element-button)){box-shadow: var(--wp--preset--shadow--natural);}:root :where(.wp-element-button, .wp-block-button__link){box-shadow: var(--wp--preset--shadow--natural);}:root :where(p){box-shadow: var(--wp--preset--shadow--natural);}'; + $element_styles = 'a:where(:not(.wp-element-button)){box-shadow: var(--wp--preset--shadow--natural);}:root :where(.wp-element-button, .wp-block-button__link){box-shadow: var(--wp--preset--shadow--natural);}:root :where(.wp-block-paragraph){box-shadow: var(--wp--preset--shadow--natural);}'; $expected_styles = $variable_styles . $element_styles; $this->assertSameCSS( $expected_styles, $theme_json->get_stylesheet( array( 'styles', 'presets', 'variables' ), null, array( 'skip_root_layout_styles' => true ) ) ); } diff --git a/phpunit/data/themedir1/block-theme/templates/custom-hero-template.html b/phpunit/data/themedir1/block-theme/templates/custom-hero-template.html index 0a62cda60641a1..ad400463961e0e 100644 --- a/phpunit/data/themedir1/block-theme/templates/custom-hero-template.html +++ b/phpunit/data/themedir1/block-theme/templates/custom-hero-template.html @@ -1,3 +1,3 @@ -Custom Hero template
+Custom Hero template
diff --git a/phpunit/data/themedir1/block-theme/templates/custom-single-post-template.html b/phpunit/data/themedir1/block-theme/templates/custom-single-post-template.html index fc0a5f8a4b154d..fc5bd1449b9bc6 100644 --- a/phpunit/data/themedir1/block-theme/templates/custom-single-post-template.html +++ b/phpunit/data/themedir1/block-theme/templates/custom-single-post-template.html @@ -1,3 +1,3 @@ -Custom Single Post template
+Custom Single Post template
diff --git a/phpunit/data/themedir1/block-theme/templates/index.html b/phpunit/data/themedir1/block-theme/templates/index.html index 451c2c1a5c159b..e477d9b9a8f957 100644 --- a/phpunit/data/themedir1/block-theme/templates/index.html +++ b/phpunit/data/themedir1/block-theme/templates/index.html @@ -1,3 +1,3 @@ -Index Template
+Index Template
diff --git a/phpunit/data/themedir1/block-theme/templates/page-home.html b/phpunit/data/themedir1/block-theme/templates/page-home.html index fd46fc0018fff4..b44dba35cc73ae 100644 --- a/phpunit/data/themedir1/block-theme/templates/page-home.html +++ b/phpunit/data/themedir1/block-theme/templates/page-home.html @@ -1,3 +1,3 @@ -Page (Home) Template
+Page (Home) Template
diff --git a/phpunit/fixtures/pattern-directory/browse-all.json b/phpunit/fixtures/pattern-directory/browse-all.json index 27dca1b4b38867..5abe24e1d6febb 100644 --- a/phpunit/fixtures/pattern-directory/browse-all.json +++ b/phpunit/fixtures/pattern-directory/browse-all.json @@ -3,7 +3,7 @@ "id": 31, "title": { "rendered": "Heading and paragraph" }, "content": { - "rendered": "\nThese preliminaries settled, he did not care to put off any longer the execution of his design, urged on to it by the thought of all the world was losing by his delay, seeing what wrongs he intended to right, grievances to redress, injustices to repair, abuses to remove, and duties to discharge.
\nThese preliminaries settled, he did not care to put off any longer the execution of his design, urged on to it by the thought of all the world was losing by his delay, seeing what wrongs he intended to right, grievances to redress, injustices to repair, abuses to remove, and duties to discharge.
\nThese preliminaries settled, he did not care to put off any longer the execution of his design, urged on to it by the thought of all the world was losing by his delay, seeing what wrongs he intended to right, grievances to redress, injustices to repair, abuses to remove, and duties to discharge.
\nThese preliminaries settled, he did not care to put off any longer the execution of his design, urged on to it by the thought of all the world was losing by his delay, seeing what wrongs he intended to right, grievances to redress, injustices to repair, abuses to remove, and duties to discharge.
\nJust a paragraph
+Just a paragraph
diff --git a/post-content.php b/post-content.php index 2f1ad01a36dd3e..740e3f12a64c39 100644 --- a/post-content.php +++ b/post-content.php @@ -8,24 +8,24 @@ ?>
pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.', 'gutenberg' ); ?>
+pieces of content—somewhat similar to LEGO bricks—that you can move around and interact with. Move your cursor around and you’ll notice the different blocks light up with outlines and arrows. Press the arrows to reposition blocks quickly, without fearing about losing things in the process of copying and pasting.', 'gutenberg' ); ?>
-text block the most basic block of all. The text block has its own controls to be moved freely around the post...', 'gutenberg' ); ?>
+text block the most basic block of all. The text block has its own controls to be moved freely around the post...', 'gutenberg' ); ?>
- + - + @@ -33,7 +33,7 @@ - + @@ -43,7 +43,7 @@ - + @@ -51,11 +51,11 @@ -(+) button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.', 'gutenberg' ); ?>
+(+) button you’ll see around the editor—which allows you to browse all available content blocks and add them into your post. Plugins and themes are able to register their own, opening up all sort of possibilities for rich editing and publishing.', 'gutenberg' ); ?>
- + @@ -90,24 +90,24 @@ - +- +- + - + @@ -125,7 +125,7 @@ - + @@ -133,7 +133,7 @@ -
wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:', 'gutenberg' ); ?>
+wide and full-wide alignments with galleries, you can create a very media rich layout, very quickly:', 'gutenberg' ); ?>
@@ -141,7 +141,7 @@ - + @@ -156,11 +156,11 @@ - + - + @@ -170,15 +170,15 @@ - + -+
-
+
- 👋 👋 Explore our network of trails that lead through a variety of woodland habitats and observe the diverse flora that call this area home. Explore our network of trails that lead through a variety of woodland habitats and observe the diverse flora that call this area home. Hello there Hello there Group Block with a Paragraph Group Block with a Paragraph 1 1 2 2 1 1 2 2 1. 1. * * * * * * * * * * one one two two one one two two *\u00a0 *\u00a0 1 1 1 1 2 2 Quote content Quote content A quote A quote Another paragraph Another paragraph test test I’m a quote I’m a quote test test one one two two one one two two one one two two cite cite cite cite 1 1 1 1 2 2 1 1 1 1
-
`
);
@@ -43,11 +43,11 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -67,7 +67,7 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -87,7 +87,7 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -105,7 +105,7 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -130,11 +130,11 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -155,11 +155,11 @@ test.describe( 'Quote', () => {
await editor.clickBlockOptionsMenuItem( 'Ungroup' );
expect( await editor.getEditedPostContent() ).toBe(
`
-
-
-
+
`
);
await page.keyboard.press( 'Backspace' );
@@ -280,11 +280,11 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -295,7 +295,7 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
+
`
);
@@ -316,7 +316,7 @@ test.describe( 'Quote', () => {
expect( await editor.getEditedPostContent() ).toBe(
`
-
`
);
@@ -325,7 +325,7 @@ test.describe( 'Quote', () => {
await page.keyboard.press( 'Backspace' );
expect( await editor.getEditedPostContent() ).toBe(
`
-
-
+
@@ -21,7 +21,7 @@
Paragraph to annotate
' ); + ).toHaveValue( + 'Paragraph to annotate
' + ); } ); test( 'keeps the cursor in the same location when applying annotation', async ( { diff --git a/test/e2e/specs/editor/plugins/block-hooks.spec.js b/test/e2e/specs/editor/plugins/block-hooks.spec.js index b0dba8287cafad..6e2b4ebb882589 100644 --- a/test/e2e/specs/editor/plugins/block-hooks.spec.js +++ b/test/e2e/specs/editor/plugins/block-hooks.spec.js @@ -6,8 +6,8 @@ const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); const dummyBlocksContent = `This is a dummy paragraph.
+ +This is a dummy paragraph.
`; const dummyClassicContent = 'This is a dummy paragraph.
'; @@ -84,9 +84,15 @@ test.describe( 'Block Hooks API', () => { page.locator( '.entry-content > *' ) ).toHaveClass( [ 'wp-block-heading', - getHookedBlockClassName( 'after', 'core/heading' ), - 'dummy-paragraph', - getHookedBlockClassName( 'last_child', blockType ), + `${ getHookedBlockClassName( + 'after', + 'core/heading' + ) } wp-block-paragraph`, + 'wp-block-paragraph', + `${ getHookedBlockClassName( + 'last_child', + blockType + ) } wp-block-paragraph`, ] ); } ); @@ -158,9 +164,15 @@ test.describe( 'Block Hooks API', () => { page.locator( '.entry-content > *' ) ).toHaveClass( [ 'wp-block-heading', - getHookedBlockClassName( 'after', 'core/heading' ), - getHookedBlockClassName( 'last_child', blockType ), - 'dummy-paragraph', + `wp-block-paragraph ${ getHookedBlockClassName( + 'after', + 'core/heading' + ) }`, + `wp-block-paragraph ${ getHookedBlockClassName( + 'last_child', + blockType + ) }`, + 'wp-block-paragraph', ] ); } ); } ); @@ -214,7 +226,10 @@ test.describe( 'Block Hooks API', () => { ).toHaveClass( [ 'dummy-heading', 'dummy-paragraph', - getHookedBlockClassName( 'last_child', blockType ), + `${ getHookedBlockClassName( + 'last_child', + blockType + ) } wp-block-paragraph`, ] ); } ); @@ -271,7 +286,10 @@ test.describe( 'Block Hooks API', () => { await expect( page.locator( '.entry-content > *' ) ).toHaveClass( [ - getHookedBlockClassName( 'last_child', blockType ), + `wp-block-paragraph ${ getHookedBlockClassName( + 'last_child', + blockType + ) }`, 'dummy-heading', 'dummy-paragraph', ] ); diff --git a/test/e2e/specs/editor/plugins/format-api.spec.js b/test/e2e/specs/editor/plugins/format-api.spec.js index 1e631615313bd1..fcd14e8165d7b4 100644 --- a/test/e2e/specs/editor/plugins/format-api.spec.js +++ b/test/e2e/specs/editor/plugins/format-api.spec.js @@ -35,7 +35,7 @@ test.describe( 'Using Format API', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -First paragraph
+First paragraph
` ); } ); @@ -50,14 +50,14 @@ test.describe( 'Using Format API', () => { } ); expect( await editor.getEditedPostContent() ).toBe( ` -test
+test
` ); await page.keyboard.press( 'ArrowRight' ); await editor.clickBlockToolbarButton( 'Clear Unknown Formatting' ); expect( await editor.getEditedPostContent() ).toBe( ` -test
+test
` ); } ); diff --git a/test/e2e/specs/editor/plugins/inner-blocks-template-sync.spec.js b/test/e2e/specs/editor/plugins/inner-blocks-template-sync.spec.js index 9790d873d898d4..0da24ebe7a6f9e 100644 --- a/test/e2e/specs/editor/plugins/inner-blocks-template-sync.spec.js +++ b/test/e2e/specs/editor/plugins/inner-blocks-template-sync.spec.js @@ -34,10 +34,10 @@ test.describe( 'InnerBlocks Template Sync', () => { name: 'Type text or HTML', } ).fill( ` -Content…
+Content…
-added paragraph
+added paragraph
` ); @@ -77,10 +77,10 @@ test.describe( 'InnerBlocks Template Sync', () => { name: 'Type text or HTML', } ).fill( ` -Content…
+Content…
-added paragraph
+added paragraph
` ); diff --git a/test/e2e/specs/editor/plugins/pattern-recursion.spec.js b/test/e2e/specs/editor/plugins/pattern-recursion.spec.js index c688f3580c3701..0a232228cd4ae0 100644 --- a/test/e2e/specs/editor/plugins/pattern-recursion.spec.js +++ b/test/e2e/specs/editor/plugins/pattern-recursion.spec.js @@ -17,7 +17,7 @@ test.describe( 'Preventing Pattern Recursion (client)', () => { title: 'Evil recursive', description: 'Evil recursive', content: - 'Hello
', + 'Hello
', }, ], } ); diff --git a/test/e2e/specs/editor/plugins/post-type-locking.spec.js b/test/e2e/specs/editor/plugins/post-type-locking.spec.js index ff02d18c51464b..a4d9f4ce14432b 100644 --- a/test/e2e/specs/editor/plugins/post-type-locking.spec.js +++ b/test/e2e/specs/editor/plugins/post-type-locking.spec.js @@ -125,7 +125,7 @@ test.describe( 'Post-type locking', () => { // Modify template. await page.getByRole( 'textbox', { name: 'Type text or HTML' } ) .fill( ` - + ` ); // Go back to the visual editor. diff --git a/test/e2e/specs/editor/various/__snapshots__/Content-only-lock-should-be-able-to-edit-the-content-of-blocks-with-content-only-lock-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Content-only-lock-should-be-able-to-edit-the-content-of-blocks-with-content-only-lock-1-chromium.txt index 18f0839c8dc89f..b4c30f0ba880f0 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Content-only-lock-should-be-able-to-edit-the-content-of-blocks-with-content-only-lock-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Content-only-lock-should-be-able-to-edit-the-content-of-blocks-with-content-only-lock-1-chromium.txt @@ -1,5 +1,5 @@Hello World
+Hello World
Copy - collapsed selection
+Copy - collapsed selection
-2
+2
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt index 4d6ec0a8f5f5b5..e806e8607cd916 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt @@ -1,7 +1,7 @@ -Copy - collapsed selection
+Copy - collapsed selection
-2Copy - collapsed selection
+2Copy - collapsed selection
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-1-chromium.txt index dca643f29a41a5..639faa1c9e5058 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-1-chromium.txt @@ -1,7 +1,7 @@ -A block
+A block
-B block
+B block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-chromium.txt index 18b145e715a96e..a32fdaa1c6204c 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-only-partial-selection-of-text-blocks-2-chromium.txt @@ -1,15 +1,15 @@ -block
+block
-B
+B
-A block
+A block
-B block
+B block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt index 2b6aacddd6f200..2c7bd74691583a 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt @@ -1,5 +1,5 @@ -A block
+A block
@@ -7,5 +7,5 @@ -B block
+B block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt index 98ec917dd6da5a..6fa59ad471e61a 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-copy-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt @@ -1,5 +1,5 @@ -block
+block
@@ -7,11 +7,11 @@ -B
+B
-A block
+A block
@@ -19,5 +19,5 @@ -B block
+B block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-1-chromium.txt index 863fd4e6a1ce49..48517abab627c9 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-1-chromium.txt @@ -1,3 +1,3 @@ -2
+2
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt index 4a58677b62c4c3..0f0748266b4f92 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-blocks-with-collapsed-selection-2-chromium.txt @@ -1,3 +1,3 @@ -2Cut - collapsed selection
+2Cut - collapsed selection
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-1-chromium.txt index bf553ea4378c82..84eb8dd49d4be4 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-and-paste-individual-non-textual-blocks-1-chromium.txt @@ -1,5 +1,5 @@ - + diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-1-chromium.txt index beef4f8f37b1f3..f98f46b0c5e858 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-1-chromium.txt @@ -3,5 +3,5 @@ -Paragraph
+Paragraph
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt index 4423570da521f7..afed589a50e091 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-and-merge-like-a-normal-delete---not-forward-2-chromium.txt @@ -3,7 +3,7 @@ -Paragra
+Paragra
diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-1-chromium.txt index dca643f29a41a5..639faa1c9e5058 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-1-chromium.txt @@ -1,7 +1,7 @@ -A block
+A block
-B block
+B block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-2-chromium.txt index 75d374dd0deb42..058f265c216d06 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-partial-selection-of-text-blocks-2-chromium.txt @@ -1,11 +1,11 @@ -block
+block
-B
+B
-A block
+A block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt index 2b6aacddd6f200..2c7bd74691583a 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-1-chromium.txt @@ -1,5 +1,5 @@ -A block
+A block
@@ -7,5 +7,5 @@ -B block
+B block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt index e862b0f6116960..b043ddb47aaea9 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-cut-paste-partial-selection-with-other-blocks-in-between-2-chromium.txt @@ -1,5 +1,5 @@ -block
+block
@@ -7,9 +7,9 @@ -B
+B
-A block
+A block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-handle-paste-events-once-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-handle-paste-events-once-1-chromium.txt index ff0c2245d93942..6b6feab5c191e2 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-handle-paste-events-once-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-handle-paste-events-once-1-chromium.txt @@ -1,5 +1,5 @@ - + diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-link-to-formatted-text-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-link-to-formatted-text-1-chromium.txt index 73ed4090549910..98727d13d0bdc1 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-link-to-formatted-text-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-link-to-formatted-text-1-chromium.txt @@ -1,3 +1,3 @@ -test
+test
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-1-chromium.txt index beef4f8f37b1f3..f98f46b0c5e858 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-1-chromium.txt @@ -3,5 +3,5 @@ -Paragraph
+Paragraph
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-2-chromium.txt index 2f13cd0939822f..3ecb568cb4b8ca 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-paste-plain-text-in-plain-text-context-when-cross-block-selection-is-copied-2-chromium.txt @@ -3,7 +3,7 @@ -Paragraph
+Paragraph
diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-in-places-like-input-fields-and-textareas-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-in-places-like-input-fields-and-textareas-2-chromium.txt index 3954dbe8762fc3..ca70e058358b38 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-in-places-like-input-fields-and-textareas-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-in-places-like-input-fields-and-textareas-2-chromium.txt @@ -3,5 +3,5 @@ -Pasted: e]
+Pasted: e]
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-1-chromium.txt index 5e229b8e6ed81b..b38429bcbd52f7 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-1-chromium.txt @@ -1,7 +1,7 @@ -First block
+First block
-Second block
+Second block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-2-chromium.txt index be02e7518e14d5..0897d904ddb678 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Copy-cut-paste-should-respect-inline-copy-when-text-is-selected-2-chromium.txt @@ -1,11 +1,11 @@ -First block
+First block
-ck
+ck
-Second block
+Second block
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-chromium.txt index 4a3299dafa57c1..fca2969933fa29 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-chromium.txt @@ -1,5 +1,5 @@ -Dummy text
+Dummy text
diff --git a/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-webkit.txt b/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-webkit.txt index 4a3299dafa57c1..fca2969933fa29 100644 --- a/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-webkit.txt +++ b/test/e2e/specs/editor/various/__snapshots__/Inserting-blocks-firefox-webkit-inserts-p-59603-ragging-and-dropping-from-the-global-inserter-1-webkit.txt @@ -1,5 +1,5 @@ -Dummy text
+Dummy text
diff --git a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-1-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-1-chromium.txt index fbbccf2420f295..c6a6fb6624cd19 100644 --- a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-1-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-1-chromium.txt @@ -1,3 +1,3 @@ -١٠٢
+١٠٢
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-2-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-2-chromium.txt index 9f1e70f261f837..095a6bff77d072 100644 --- a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-2-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-2-chromium.txt @@ -1,3 +1,3 @@ -١٠٢
+١٠٢
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-3-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-3-chromium.txt index f078b326823185..2a8cea8bd28456 100644 --- a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-3-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-3-chromium.txt @@ -1,3 +1,3 @@ -٠١٢
+٠١٢
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-4-chromium.txt b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-4-chromium.txt index 598ba367aaf538..42a3b410b0a49d 100644 --- a/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-4-chromium.txt +++ b/test/e2e/specs/editor/various/__snapshots__/RTL-should-navigate-inline-boundaries-4-chromium.txt @@ -1,3 +1,3 @@ -٠١٢
+٠١٢
\ No newline at end of file diff --git a/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js b/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js index 7530cab989a7f3..c2b3afd9075f6c 100644 --- a/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js +++ b/test/e2e/specs/editor/various/autocomplete-and-mentions.spec.js @@ -90,13 +90,13 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.triggerString = 'I am @da'; testData.optionText = 'Darth Vader yourfather'; testData.snapshot = ` -I am @yourfather.
+I am @yourfather.
`; } else if ( type === 'option' ) { testData.triggerString = 'I like ~s'; testData.optionText = '🍓 Strawberry'; testData.snapshot = ` -I like 🍓.
+I like 🍓.
`; } @@ -142,13 +142,13 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.triggerString = '@j'; testData.optionText = 'Jane Doe testuser'; testData.snapshot = ` -Stuck in the middle with @testuser you.
+Stuck in the middle with @testuser you.
`; } else if ( type === 'option' ) { testData.triggerString = 'a ~m'; testData.optionText = '🥭 Mango'; testData.snapshot = ` -Stuck in the middle with a 🥭 you.
+Stuck in the middle with a 🥭 you.
`; } @@ -180,7 +180,7 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.firstOptionText = 'Bilbo Baggins thebetterhobbit'; testData.secondOptionText = 'Frodo Baggins ringbearer'; testData.snapshot = ` -The two greatest hobbits, in order: @thebetterhobbit @ringbearer.
+The two greatest hobbits, in order: @thebetterhobbit @ringbearer.
`; } else if ( type === 'option' ) { testData.firstTriggerString = 'An awesome combination: ~m'; @@ -188,7 +188,7 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.firstOptionText = '🥭 Mango'; testData.secondOptionText = '🫐 Blueberry'; testData.snapshot = ` -An awesome combination: 🥭 🫐.
+An awesome combination: 🥭 🫐.
`; } @@ -224,13 +224,13 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.triggerString = '@'; testData.optionText = 'Katniss Everdeen mockingjay'; testData.snapshot = ` -@mockingjay
+@mockingjay
`; } else if ( type === 'option' ) { testData.triggerString = '~'; testData.optionText = '🍓 Strawberry'; testData.snapshot = ` -🍓
+🍓
`; } @@ -263,13 +263,13 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.triggerString = '@'; testData.optionText = 'Jean-Luc Picard makeitso'; testData.snapshot = ` -@makeitso
+@makeitso
`; } else if ( type === 'option' ) { testData.triggerString = '~'; testData.optionText = '🍒 Cherry'; testData.snapshot = ` -🍒
+🍒
`; } @@ -298,7 +298,7 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.optionText = 'Jane Doe testuser'; testData.postCompleterInput = ' ...a secret.'; testData.snapshot = ` -My name is @j ...a secret.
+My name is @j ...a secret.
`; } else if ( type === 'option' ) { testData.triggerString = 'My favorite fruit is ~a'; @@ -306,7 +306,7 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.postCompleterInput = " ...no I changed my mind. It's mango."; testData.snapshot = ` -My favorite fruit is ~a ...no I changed my mind. It's mango.
+My favorite fruit is ~a ...no I changed my mind. It's mango.
`; } @@ -343,7 +343,7 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { await page.keyboard.type( ' grapes.' ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -Sorry, we are all out of ~g grapes.
+Sorry, we are all out of ~g grapes.
` ); } ); } @@ -357,45 +357,45 @@ test.describe( 'Autocomplete (@firefox, @webkit)', () => { testData.triggerString = '@bu'; testData.optionText = 'Buddy Elf buddytheelf'; testData.snapshot = ` -@buddytheelf test
+@buddytheelf test
-@buddytheelf test
+@buddytheelf test
-@buddytheelf test
+@buddytheelf test
-@buddytheelf test
+@buddytheelf test
- + `; } else if ( type === 'option' ) { testData.triggerString = '~b'; testData.optionText = '🫐 Blueberry'; testData.snapshot = ` -🫐 test
+🫐 test
-🫐 test
+🫐 test
-🫐 test
+🫐 test
-🫐 test
+🫐 test
- + `; } diff --git a/test/e2e/specs/editor/various/autosave.spec.js b/test/e2e/specs/editor/various/autosave.spec.js index 01d53f0bf2d085..817715a4242fb2 100644 --- a/test/e2e/specs/editor/various/autosave.spec.js +++ b/test/e2e/specs/editor/various/autosave.spec.js @@ -47,7 +47,7 @@ test.describe( 'Autosave', () => { const { content } = JSON.parse( autosave ); expect( content ).toBe( ` -before save after save
+before save after save
` ); } ); diff --git a/test/e2e/specs/editor/various/block-grouping.spec.js b/test/e2e/specs/editor/various/block-grouping.spec.js index ec09edc4160d08..e7c624a489f829 100644 --- a/test/e2e/specs/editor/various/block-grouping.spec.js +++ b/test/e2e/specs/editor/various/block-grouping.spec.js @@ -194,7 +194,7 @@ test.describe( 'Block Grouping', () => { const { id: ref } = await requestUtils.createBlock( { title: 'Block', status: 'publish', - content: `\nHey!
\n`, + content: `\nHey!
\n`, wp_pattern_category: [], } ); diff --git a/test/e2e/specs/editor/various/block-locking.spec.js b/test/e2e/specs/editor/various/block-locking.spec.js index a8895d282fb956..2a6c7674b06297 100644 --- a/test/e2e/specs/editor/various/block-locking.spec.js +++ b/test/e2e/specs/editor/various/block-locking.spec.js @@ -63,7 +63,7 @@ test.describe( 'Block Locking', () => { expect( await editor.getEditedPostContent() ) .toBe( ` -Some paragraph
+Some paragraph
` ); } ); @@ -90,7 +90,7 @@ test.describe( 'Block Locking', () => { expect( await editor.getEditedPostContent() ) .toBe( ` -Some paragraph
+Some paragraph
` ); } ); diff --git a/test/e2e/specs/editor/various/content-only-lock.spec.js b/test/e2e/specs/editor/various/content-only-lock.spec.js index 9784aea1ee068f..2e74e7b8e1cbef 100644 --- a/test/e2e/specs/editor/various/content-only-lock.spec.js +++ b/test/e2e/specs/editor/various/content-only-lock.spec.js @@ -19,7 +19,7 @@ test.describe( 'Content-only lock', () => { await page.getByPlaceholder( 'Start writing with text or HTML' ) .fill( `Hello
+Hello
Hello
+Hello
Locked block a
+Locked block a
-Locked block b
+Locked block b
1
+1
-2
+2
` ); await editor.canvas @@ -88,11 +88,11 @@ test.describe( 'Draggable block', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -2
+2
-1
+1
` ); } ); @@ -108,11 +108,11 @@ test.describe( 'Draggable block', () => { // Confirm correct setup. await expect.poll( editor.getEditedPostContent ) .toBe( ` -1
+1
-2
+2
` ); await editor.canvas @@ -161,11 +161,11 @@ test.describe( 'Draggable block', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -2
+2
-1
+1
` ); } ); @@ -238,11 +238,11 @@ test.describe( 'Draggable block', () => { await expect.poll( editor.getEditedPostContent ) .toBe( `2
+2
-1
+1
2
+2
-1
+1
Clone me
+Clone me
-Clone me
+Clone me
` ); @@ -35,15 +35,15 @@ test.describe( 'Duplicating blocks', () => { expect( await editor.getEditedPostContent() ).toBe( ` -Clone me
+Clone me
-Clone me
+Clone me
-Clone me
+Clone me
` ); } ); diff --git a/test/e2e/specs/editor/various/editor-modes.spec.js b/test/e2e/specs/editor/various/editor-modes.spec.js index 4e856e6214ca8c..1fc9b08168fc5d 100644 --- a/test/e2e/specs/editor/various/editor-modes.spec.js +++ b/test/e2e/specs/editor/various/editor-modes.spec.js @@ -67,7 +67,9 @@ test.describe( 'Editing modes (visual/HTML)', () => { .getByRole( 'textbox' ); // Make sure the paragraph content is rendered as expected. - await expect( paragraphHTML ).toHaveValue( 'Hello world!
' ); + await expect( paragraphHTML ).toHaveValue( + 'Hello world!
' + ); // Change the `drop cap` using the sidebar. await page @@ -80,7 +82,7 @@ test.describe( 'Editing modes (visual/HTML)', () => { // Make sure the HTML content updated. await expect( paragraphHTML ).toHaveValue( - 'Hello world!
' + 'Hello world!
' ); } ); @@ -134,7 +136,7 @@ test.describe( 'Editing modes (visual/HTML)', () => { // Change content. await page.getByRole( 'textbox', { name: 'Type text or HTML' } ) .fill( ` -Hi world!
+Hi world!
` ); // Save the post using the shortcut. @@ -167,7 +169,7 @@ test.describe( 'Editing modes (visual/HTML)', () => { // Change the content. await page.getByRole( 'textbox', { name: 'Type text or HTML' } ) .fill( ` -abc
+abc
` ); // Go back to the visual editor. diff --git a/test/e2e/specs/editor/various/font-size-picker.spec.js b/test/e2e/specs/editor/various/font-size-picker.spec.js index d3957e7cb65d8d..2677450255bf27 100644 --- a/test/e2e/specs/editor/various/font-size-picker.spec.js +++ b/test/e2e/specs/editor/various/font-size-picker.spec.js @@ -37,7 +37,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph to be made "small"
+Paragraph to be made "small"
` ); } ); @@ -59,13 +59,13 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph reset - custom size
+Paragraph reset - custom size
` ); await pageUtils.pressKeys( 'Backspace', { times: 2 } ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph reset - custom size
+Paragraph reset - custom size
` ); } ); } ); @@ -151,7 +151,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph to be made "large"
+Paragraph to be made "large"
` ); } ); @@ -175,7 +175,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using tools panel menu
+Paragraph with font size reset using tools panel menu
` ); await page.click( 'role=button[name="Typography options"i]' ); @@ -184,7 +184,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using tools panel menu
+Paragraph with font size reset using tools panel menu
` ); } ); @@ -208,7 +208,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using input field
+Paragraph with font size reset using input field
` ); await page.click( @@ -220,7 +220,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using input field
+Paragraph with font size reset using input field
` ); } ); } ); @@ -241,7 +241,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph to be made "large"
+Paragraph to be made "large"
` ); } ); @@ -262,7 +262,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using tools panel menu
+Paragraph with font size reset using tools panel menu
` ); await page.click( 'role=button[name="Typography options"i]' ); @@ -271,7 +271,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using tools panel menu
+Paragraph with font size reset using tools panel menu
` ); } ); @@ -293,7 +293,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using input field
+Paragraph with font size reset using input field
` ); await page.click( @@ -305,7 +305,7 @@ test.describe( 'Font Size Picker', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Paragraph with font size reset using input field
+Paragraph with font size reset using input field
` ); } ); } ); diff --git a/test/e2e/specs/editor/various/inserting-blocks.spec.js b/test/e2e/specs/editor/various/inserting-blocks.spec.js index 4de9f736ceafa1..6591275a0b4912 100644 --- a/test/e2e/specs/editor/various/inserting-blocks.spec.js +++ b/test/e2e/specs/editor/various/inserting-blocks.spec.js @@ -108,7 +108,7 @@ test.describe( 'Inserting blocks (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -Dummy text
+Dummy text
diff --git a/test/e2e/specs/editor/various/invalid-block.spec.js b/test/e2e/specs/editor/various/invalid-block.spec.js index 3487c326d2851f..f7643c40b7e093 100644 --- a/test/e2e/specs/editor/various/invalid-block.spec.js +++ b/test/e2e/specs/editor/various/invalid-block.spec.js @@ -25,7 +25,7 @@ test.describe( 'Invalid blocks', () => { await editor.canvas .getByRole( 'document', { name: 'Block: Paragraph' } ) .getByRole( 'textbox' ) - .fill( 'invalid paragraph' ); + .fill( '
invalid paragraph' ); // Takes the focus away from the block so the invalid warning is triggered. await editor.saveDraft(); @@ -46,7 +46,10 @@ test.describe( 'Invalid blocks', () => { page .getByRole( 'dialog', { name: 'Resolve Block' } ) .locator( '.block-editor-block-compare__html' ) - ).toHaveText( [ '
invalid paragraph', '
invalid paragraph
' ] ); + ).toHaveText( [ + 'invalid paragraph', + '
invalid paragraph
', + ] ); } ); test( 'should strip potentially malicious on* attributes', async ( { @@ -73,7 +76,7 @@ test.describe( 'Invalid blocks', () => { await editor.setContent( ` -aaaa 1
+
aaaa 1
` );
diff --git a/test/e2e/specs/editor/various/mentions.spec.js b/test/e2e/specs/editor/various/mentions.spec.js
index fef3b1c3e3d2e1..bfe032effb2dc1 100644
--- a/test/e2e/specs/editor/various/mentions.spec.js
+++ b/test/e2e/specs/editor/various/mentions.spec.js
@@ -34,7 +34,7 @@ test.describe( 'autocomplete mentions', () => {
await page.keyboard.type( '.' );
await expect.poll( editor.getEditedPostContent ).toBe(
`
-
I am @admin.
+I am @admin.
` ); } ); @@ -57,7 +57,7 @@ test.describe( 'autocomplete mentions', () => { await page.keyboard.type( ' ' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -Stuck in the middle with @testuser you
+Stuck in the middle with @testuser you
` ); } ); @@ -82,7 +82,7 @@ test.describe( 'autocomplete mentions', () => { await page.keyboard.type( '.' ); await expect.poll( editor.getEditedPostContent ).toBe( ` -I am @testuser @admin.
+I am @testuser @admin.
` ); } ); diff --git a/test/e2e/specs/editor/various/pattern-overrides.spec.js b/test/e2e/specs/editor/various/pattern-overrides.spec.js index 1b65b4087bcd5f..b8e574f03bfa18 100644 --- a/test/e2e/specs/editor/various/pattern-overrides.spec.js +++ b/test/e2e/specs/editor/various/pattern-overrides.spec.js @@ -234,13 +234,13 @@ test.describe( 'Pattern Overrides', () => { } ) => { const content = ` -Pattern Overrides
+Pattern Overrides
-Post Meta Binding
+Post Meta Binding
-No Overrides or Binding
+No Overrides or Binding
`; @@ -493,7 +493,7 @@ test.describe( 'Pattern Overrides', () => { const innerPattern = await requestUtils.createBlock( { title: 'Inner Pattern', content: ` -Inner paragraph
+Inner paragraph
`, status: 'publish', } ); @@ -596,7 +596,7 @@ test.describe( 'Pattern Overrides', () => { const { id } = await requestUtils.createBlock( { title: 'Pattern', content: ` -Editable
+Editable
`, status: 'publish', } ); @@ -643,7 +643,7 @@ test.describe( 'Pattern Overrides', () => { const { id } = await requestUtils.createBlock( { title: 'Pattern', content: ` -Editable
+Editable
`, status: 'publish', } ); @@ -799,7 +799,7 @@ test.describe( 'Pattern Overrides', () => {Paragraph
+Paragraph
`, status: 'publish', } ); @@ -888,7 +888,7 @@ test.describe( 'Pattern Overrides', () => { const { id } = await requestUtils.createBlock( { title: 'Pattern', content: ` -Paragraph
+Paragraph
`, status: 'publish', } ); @@ -1204,10 +1204,10 @@ test.describe( 'Pattern Overrides', () => {default content
+default content
-default content
+default content
`, status: 'publish', } ); @@ -1298,7 +1298,7 @@ test.describe( 'Pattern Overrides', () => { const pattern = await requestUtils.createBlock( { title: 'Pattern', content: ` -paragraph
+paragraph
`, status: 'publish', meta: { diff --git a/test/e2e/specs/editor/various/patterns.spec.js b/test/e2e/specs/editor/various/patterns.spec.js index f5f73169a0f7f9..07684143710c96 100644 --- a/test/e2e/specs/editor/various/patterns.spec.js +++ b/test/e2e/specs/editor/various/patterns.spec.js @@ -213,7 +213,7 @@ test.describe( 'Synced pattern', () => { const { id } = await requestUtils.createBlock( { title: 'Alternative greeting block', content: - '\nGuten Tag!
\n', + '\nGuten Tag!
\n', status: 'publish', } ); @@ -277,7 +277,7 @@ test.describe( 'Synced pattern', () => { const { id } = await requestUtils.createBlock( { title: 'Synced pattern', content: - '\nBefore Edit
\n', + '\nBefore Edit
\n', status: 'publish', } ); @@ -336,7 +336,7 @@ test.describe( 'Synced pattern', () => { const { id } = await requestUtils.createBlock( { title: 'Greeting block', content: - '\nHello there!
\n', + '\nHello there!
\n', status: 'publish', } ); @@ -537,7 +537,7 @@ test.describe( 'Synced pattern', () => { const { id } = await requestUtils.createBlock( { title: 'Duplicated reusable block', content: - '\nAwesome Paragraph
\n', + '\nAwesome Paragraph
\n', status: 'publish', } ); await editor.insertBlock( { diff --git a/test/e2e/specs/editor/various/rtl.spec.js b/test/e2e/specs/editor/various/rtl.spec.js index aaf1186cc5abae..28e3fce5330839 100644 --- a/test/e2e/specs/editor/various/rtl.spec.js +++ b/test/e2e/specs/editor/various/rtl.spec.js @@ -44,7 +44,7 @@ test.describe( 'RTL', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -٠١٢
+٠١٢
` ); } ); @@ -61,11 +61,11 @@ test.describe( 'RTL', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -٠
+٠
-١
+١
` ); } ); @@ -83,7 +83,7 @@ test.describe( 'RTL', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -٠١
+٠١
` ); } ); @@ -102,7 +102,7 @@ test.describe( 'RTL', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -٠١
+٠١
` ); } ); @@ -136,11 +136,11 @@ test.describe( 'RTL', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -٠
١
٠
١
٠
١
٢
٠
١
٢
First
+First
-Second
+Second
` ); @@ -50,11 +50,11 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { // Check the content. expect( content ).toBe( ` -First
+First
-Second
+Second
` ); @@ -76,11 +76,11 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { // Check the content. expect( content ).toBe( ` -First
+First
-Second
+Second
` ); } ); @@ -105,7 +105,7 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -Bar
+Bar
` ); } ); @@ -139,11 +139,11 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -First
+First
-Still Second
+Still Second
` ); } ); @@ -173,11 +173,11 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -Foo
+Foo
- + ` ); } ); @@ -210,11 +210,11 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -Foo
+Foo
- + ` ); } ); @@ -237,7 +237,7 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -Second
+Second
` ); } ); @@ -280,15 +280,15 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -First
+First
- + -Second
+Second
` ); } ); @@ -364,11 +364,11 @@ test.describe( 'splitting and merging blocks (@firefox, @webkit)', () => { const content = await editor.getEditedPostContent(); expect( content ).toBe( ` -1
+1
-2
+2
` ); } ); diff --git a/test/e2e/specs/editor/various/style-variation.spec.js b/test/e2e/specs/editor/various/style-variation.spec.js index 136b8284b1ecff..6ba1ba31af712c 100644 --- a/test/e2e/specs/editor/various/style-variation.spec.js +++ b/test/e2e/specs/editor/various/style-variation.spec.js @@ -26,7 +26,7 @@ test.describe( 'adding blocks', () => { expect( content ).toBe( `-` ); diff --git a/test/e2e/specs/editor/various/switch-to-draft.spec.js b/test/e2e/specs/editor/various/switch-to-draft.spec.js index 81652d9c11e2bb..de7f5daf9f2ce9 100644 --- a/test/e2e/specs/editor/various/switch-to-draft.spec.js +++ b/test/e2e/specs/editor/various/switch-to-draft.spec.js @@ -107,7 +107,7 @@ class SwitchToDraftUtils { title: `Switch scheduled ${ postType } to draft`, status: 'publish', content: ` -Quote content
+Quote content
This will be a scheduled ${ postType } edited in a ${ viewport } viewport
+This will be a scheduled ${ postType } edited in a ${ viewport } viewport
`, }; diff --git a/test/e2e/specs/editor/various/writing-flow.spec.js b/test/e2e/specs/editor/various/writing-flow.spec.js index 051059b00ace62..755ecb379ce55f 100644 --- a/test/e2e/specs/editor/various/writing-flow.spec.js +++ b/test/e2e/specs/editor/various/writing-flow.spec.js @@ -205,7 +205,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -1 2
+1 2
` ); await page.keyboard.type( 'a' ); @@ -230,7 +230,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -abc1de fg2hij
+abc1de fg2hij
` ); } ); @@ -244,7 +244,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await pageUtils.pressKeys( 'shift+Enter' ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -a
a
a
b
a
b
a
b
a
b
a
a
1 3
+1 3
` ); await page.keyboard.type( '2' ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -1 2 3
+1 2 3
` ); } ); @@ -390,14 +390,14 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -alpha gamma
+alpha gamma
` ); await page.keyboard.type( 'beta' ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -alpha beta gamma
+alpha beta gamma
` ); } ); @@ -417,14 +417,14 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -alpha gamma
+alpha gamma
` ); await page.keyboard.type( 'beta' ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -alpha beta gamma
+alpha beta gamma
` ); } ); @@ -594,7 +594,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -12
+12
` ); } ); @@ -612,11 +612,11 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -abc
+abc
-123
+123
` ); } ); @@ -636,7 +636,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -1
2
1
2
123
+123
` ); } ); @@ -670,18 +670,18 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await pageUtils.pressKeys( 'Delete', { times: 2 } ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -1
+1
-3
+3
` ); await page.keyboard.press( 'Delete' ); await expect.poll( editor.getEditedPostContent ) .toBe( ` -13
+13
` ); } ); @@ -701,11 +701,11 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -abc
+abc
-123
+123
` ); } ); @@ -725,11 +725,11 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -1x
+1x
-
2
2
1
+1
-23
+23
` ); } ); @@ -856,7 +856,7 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { // Confirm correct setup. await expect.poll( editor.getEditedPostContent ) .toBe( ` -1
+1
@@ -987,11 +987,11 @@ test.describe( 'Writing Flow (@firefox, @webkit)', () => { await expect.poll( editor.getEditedPostContent ) .toBe( ` -first
+first
-second
+second
` ); } ); diff --git a/test/e2e/specs/site-editor/patterns.spec.js b/test/e2e/specs/site-editor/patterns.spec.js index dcb5d8c413877c..d35a865a596d0c 100644 --- a/test/e2e/specs/site-editor/patterns.spec.js +++ b/test/e2e/specs/site-editor/patterns.spec.js @@ -134,13 +134,13 @@ test.describe( 'Patterns', () => { title: 'Unsynced footer', meta: { wp_pattern_sync_status: 'unsynced' }, status: 'publish', - content: `\nUnsynced footer
\n`, + content: `\nUnsynced footer
\n`, wp_pattern_category: [], } ), requestUtils.createBlock( { title: 'Synced footer', status: 'publish', - content: `\nSynced footer
\n`, + content: `\nSynced footer
\n`, wp_pattern_category: [], } ), ] ); diff --git a/test/e2e/specs/site-editor/template-hierarchy.spec.js b/test/e2e/specs/site-editor/template-hierarchy.spec.js index 65a63b02020917..d912a122250473 100644 --- a/test/e2e/specs/site-editor/template-hierarchy.spec.js +++ b/test/e2e/specs/site-editor/template-hierarchy.spec.js @@ -33,7 +33,7 @@ test.describe( 'Template hierarchy', () => { title: 'Page on Front', status: 'publish', content: - 'This is a page on front
', + 'This is a page on front
', } ); await requestUtils.updateSiteSettings( { show_on_front: 'page', diff --git a/test/e2e/specs/site-editor/zoom-out.spec.js b/test/e2e/specs/site-editor/zoom-out.spec.js index 8986215e0b222b..8e1415383500ab 100644 --- a/test/e2e/specs/site-editor/zoom-out.spec.js +++ b/test/e2e/specs/site-editor/zoom-out.spec.js @@ -7,72 +7,72 @@ const EDITOR_ZOOM_OUT_CONTENT = `First Section Start
+First Section Start
-First Section Center
+First Section Center
-First Section End
+First Section End
Second Section Start
+Second Section Start
-Second Section Center
+Second Section Center
-Second Section End
+Second Section End
Third Section Start
+Third Section Start
-Third Section Center
+Third Section Center
-Third Section End
+Third Section End
Fourth Section Start
+Fourth Section Start
-Fourth Section Center
+Fourth Section Center
-Fourth Section End
+Fourth Section End
First Section Start
+First Section Start
-First Section Center
+First Section Center
-First Section End
+First Section End
First Paragraph
\n`, + `\nFirst Paragraph
\n`, 'sidebar-1' ); @@ -239,7 +239,7 @@ test.describe( 'Widgets Customizer', () => { widgetsCustomizerPage, } ) => { await requestUtils.addWidgetBlock( - `\nFirst Paragraph
\n`, + `\nFirst Paragraph
\n`, 'sidebar-1' ); await requestUtils.addWidgetBlock( @@ -298,7 +298,7 @@ test.describe( 'Widgets Customizer', () => { widgetsCustomizerPage, } ) => { await requestUtils.addWidgetBlock( - `\nFirst Paragraph
\n`, + `\nFirst Paragraph
\n`, 'sidebar-1' ); @@ -441,7 +441,7 @@ test.describe( 'Widgets Customizer', () => { widgetsCustomizerPage, } ) => { await requestUtils.addWidgetBlock( - `\nFirst Paragraph
\n`, + `\nFirst Paragraph
\n`, 'sidebar-1' ); @@ -474,7 +474,7 @@ test.describe( 'Widgets Customizer', () => { widgetsCustomizerPage, } ) => { await requestUtils.addWidgetBlock( - `\nFirst Paragraph
\n`, + `\nFirst Paragraph
\n`, 'sidebar-1' ); diff --git a/test/gutenberg-test-themes/darktheme/block-templates/index.html b/test/gutenberg-test-themes/darktheme/block-templates/index.html index 0283daeb54c6f4..f590665bc80f3f 100644 --- a/test/gutenberg-test-themes/darktheme/block-templates/index.html +++ b/test/gutenberg-test-themes/darktheme/block-templates/index.html @@ -7,5 +7,5 @@My awesome paragraph
+My awesome paragraph
diff --git a/test/gutenberg-test-themes/style-variations/block-templates/index.html b/test/gutenberg-test-themes/style-variations/block-templates/index.html index 0283daeb54c6f4..f590665bc80f3f 100644 --- a/test/gutenberg-test-themes/style-variations/block-templates/index.html +++ b/test/gutenberg-test-themes/style-variations/block-templates/index.html @@ -7,5 +7,5 @@My awesome paragraph
+My awesome paragraph
diff --git a/test/integration/__snapshots__/blocks-raw-handling.test.js.snap b/test/integration/__snapshots__/blocks-raw-handling.test.js.snap index 2ceadd67d4d1f4..9e2a89ae124895 100644 --- a/test/integration/__snapshots__/blocks-raw-handling.test.js.snap +++ b/test/integration/__snapshots__/blocks-raw-handling.test.js.snap @@ -46,11 +46,11 @@ exports[`Blocks raw handling pasteHandler shortcode-matching 1`] = `"[gallery id exports[`Blocks raw handling pasteHandler should remove extra blank lines 1`] = ` " -1
+1
-2
+2
" `; @@ -58,7 +58,7 @@ exports[`Blocks raw handling pasteHandler should strip HTML formatting space fro exports[`Blocks raw handling pasteHandler should strip some text-level elements 1`] = ` " -This is ncorect
+This is ncorect
" `; @@ -68,7 +68,7 @@ exports[`Blocks raw handling pasteHandler should strip windows data 1`] = ` -Paragraph Win
+Paragraph Win
" `; @@ -87,7 +87,7 @@ exports[`Blocks raw handling should correctly handle quotes with mixed content 1 -ribs
+ribs
" `; @@ -102,11 +102,11 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan -This is a paragraph.
+This is a paragraph.
-Preserve me!
+Preserve me!
@@ -144,7 +144,7 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan-@@ -154,7 +154,7 @@ exports[`rawHandler should convert HTML post to blocks with minimal content chan -Text.
+Text.
Text.
+Text.
" `; @@ -191,30 +191,30 @@ exports[`rawHandler should convert a list with attributes 1`] = ` exports[`rawHandler should not strip any text-level elements 1`] = ` " -This is ncorect
+This is ncorect
" `; exports[`rawHandler should preserve alignment 1`] = ` " -center
+center
" `; exports[`rawHandler should preserve all paragraphs 1`] = ` " - + -+
- + - + " `; diff --git a/test/integration/blocks-raw-handling.test.js b/test/integration/blocks-raw-handling.test.js index 70af14f3290460..dd3719ec2a9f51 100644 --- a/test/integration/blocks-raw-handling.test.js +++ b/test/integration/blocks-raw-handling.test.js @@ -249,7 +249,7 @@ describe( 'Blocks raw handling', () => { .join( '' ); expect( filtered ).toBe( - '
A paragraph.
' + 'A paragraph.
' ); expect( console ).toHaveLogged(); } ); @@ -365,7 +365,9 @@ describe( 'Blocks raw handling', () => { .map( getBlockContent ) .join( '' ); - expect( transformed ).toBe( '1
2
' ); + expect( transformed ).toBe( + '1
2
' + ); expect( console ).toHaveLogged(); } ); diff --git a/test/integration/fixtures/blocks/core__column.html b/test/integration/fixtures/blocks/core__column.html index 3bf672232a906d..49407c47b96ffe 100644 --- a/test/integration/fixtures/blocks/core__column.html +++ b/test/integration/fixtures/blocks/core__column.html @@ -1,10 +1,10 @@Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column One, Paragraph One
\n\t", - "innerContent": [ "\n\tColumn One, Paragraph One
\n\t" ] + "innerHTML": "\n\tColumn One, Paragraph One
\n\t", + "innerContent": [ + "\n\tColumn One, Paragraph One
\n\t" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\tColumn One, Paragraph Two
\n\t", - "innerContent": [ "\n\tColumn One, Paragraph Two
\n\t" ] + "innerHTML": "\n\tColumn One, Paragraph Two
\n\t", + "innerContent": [ + "\n\tColumn One, Paragraph Two
\n\t" + ] } ], "innerHTML": "\nColumn One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column One, Paragraph One
\n\t", - "innerContent": [ "\n\tColumn One, Paragraph One
\n\t" ] + "innerHTML": "\n\tColumn One, Paragraph One
\n\t", + "innerContent": [ + "\n\tColumn One, Paragraph One
\n\t" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\tColumn One, Paragraph Two
\n\t", - "innerContent": [ "\n\tColumn One, Paragraph Two
\n\t" ] + "innerHTML": "\n\tColumn One, Paragraph Two
\n\t", + "innerContent": [ + "\n\tColumn One, Paragraph Two
\n\t" + ] } ], "innerHTML": "\nColumn One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column Two, Paragraph One
+Column Two, Paragraph One
-Column Three, Paragraph One
+Column Three, Paragraph One
Column One, Paragraph One
\n\t\t", + "innerHTML": "\n\t\tColumn One, Paragraph One
\n\t\t", "innerContent": [ - "\n\t\tColumn One, Paragraph One
\n\t\t" + "\n\t\tColumn One, Paragraph One
\n\t\t" ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tColumn One, Paragraph Two
\n\t\t", + "innerHTML": "\n\t\tColumn One, Paragraph Two
\n\t\t", "innerContent": [ - "\n\t\tColumn One, Paragraph Two
\n\t\t" + "\n\t\tColumn One, Paragraph Two
\n\t\t" ] } ], @@ -45,18 +45,18 @@ "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tColumn Two, Paragraph One
\n\t\t", + "innerHTML": "\n\t\tColumn Two, Paragraph One
\n\t\t", "innerContent": [ - "\n\t\tColumn Two, Paragraph One
\n\t\t" + "\n\t\tColumn Two, Paragraph One
\n\t\t" ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tColumn Three, Paragraph One
\n\t\t", + "innerHTML": "\n\t\tColumn Three, Paragraph One
\n\t\t", "innerContent": [ - "\n\t\tColumn Three, Paragraph One
\n\t\t" + "\n\t\tColumn Three, Paragraph One
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__columns.serialized.html b/test/integration/fixtures/blocks/core__columns.serialized.html index 2b95373d1a7b83..955bd266e72667 100644 --- a/test/integration/fixtures/blocks/core__columns.serialized.html +++ b/test/integration/fixtures/blocks/core__columns.serialized.html @@ -1,21 +1,21 @@Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column Two, Paragraph One
+Column Two, Paragraph One
-Column Three, Paragraph One
+Column Three, Paragraph One
Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
-Column Two, Paragraph One
+Column Two, Paragraph One
-Column Three, Paragraph One
+Column Three, Paragraph One
Column One, Paragraph One
\n\t", + "innerHTML": "\n\tColumn One, Paragraph One
\n\t", "innerContent": [ - "\n\tColumn One, Paragraph One
\n\t" + "\n\tColumn One, Paragraph One
\n\t" ] }, { @@ -22,9 +22,9 @@ "layout": "column-1" }, "innerBlocks": [], - "innerHTML": "\n\tColumn One, Paragraph Two
\n\t", + "innerHTML": "\n\tColumn One, Paragraph Two
\n\t", "innerContent": [ - "\n\tColumn One, Paragraph Two
\n\t" + "\n\tColumn One, Paragraph Two
\n\t" ] }, { @@ -33,9 +33,9 @@ "layout": "column-2" }, "innerBlocks": [], - "innerHTML": "\n\tColumn Two, Paragraph One
\n\t", + "innerHTML": "\n\tColumn Two, Paragraph One
\n\t", "innerContent": [ - "\n\tColumn Two, Paragraph One
\n\t" + "\n\tColumn Two, Paragraph One
\n\t" ] }, { @@ -44,9 +44,9 @@ "layout": "column-3" }, "innerBlocks": [], - "innerHTML": "\n\tColumn Three, Paragraph One
\n\t", + "innerHTML": "\n\tColumn Three, Paragraph One
\n\t", "innerContent": [ - "\n\tColumn Three, Paragraph One
\n\t" + "\n\tColumn Three, Paragraph One
\n\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__columns__deprecated.serialized.html b/test/integration/fixtures/blocks/core__columns__deprecated.serialized.html index d8271e568f7af3..88494c4a63012f 100644 --- a/test/integration/fixtures/blocks/core__columns__deprecated.serialized.html +++ b/test/integration/fixtures/blocks/core__columns__deprecated.serialized.html @@ -1,23 +1,23 @@Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column Two, Paragraph One
+Column Two, Paragraph One
Column Three, Paragraph One
+Column Three, Paragraph One
Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column Two, Paragraph One
+Column Two, Paragraph One
-Column Three, Paragraph One
+Column Three, Paragraph One
Column One, Paragraph One
\n\t\t", + "innerHTML": "\n\t\tColumn One, Paragraph One
\n\t\t", "innerContent": [ - "\n\t\tColumn One, Paragraph One
\n\t\t" + "\n\t\tColumn One, Paragraph One
\n\t\t" ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tColumn One, Paragraph Two
\n\t\t", + "innerHTML": "\n\t\tColumn One, Paragraph Two
\n\t\t", "innerContent": [ - "\n\t\tColumn One, Paragraph Two
\n\t\t" + "\n\t\tColumn One, Paragraph Two
\n\t\t" ] } ], @@ -46,18 +46,18 @@ "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tColumn Two, Paragraph One
\n\t\t", + "innerHTML": "\n\t\tColumn Two, Paragraph One
\n\t\t", "innerContent": [ - "\n\t\tColumn Two, Paragraph One
\n\t\t" + "\n\t\tColumn Two, Paragraph One
\n\t\t" ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tColumn Three, Paragraph One
\n\t\t", + "innerHTML": "\n\t\tColumn Three, Paragraph One
\n\t\t", "innerContent": [ - "\n\t\tColumn Three, Paragraph One
\n\t\t" + "\n\t\tColumn Three, Paragraph One
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__columns__is-not-stacked-on-mobile.serialized.html b/test/integration/fixtures/blocks/core__columns__is-not-stacked-on-mobile.serialized.html index ca77f7df2961f6..0c4c44d3bb1443 100644 --- a/test/integration/fixtures/blocks/core__columns__is-not-stacked-on-mobile.serialized.html +++ b/test/integration/fixtures/blocks/core__columns__is-not-stacked-on-mobile.serialized.html @@ -1,21 +1,21 @@Column One, Paragraph One
+Column One, Paragraph One
-Column One, Paragraph Two
+Column One, Paragraph Two
Column Two, Paragraph One
+Column Two, Paragraph One
-Column Three, Paragraph One
+Column Three, Paragraph One
+
Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover.parsed.json b/test/integration/fixtures/blocks/core__cover.parsed.json index 8b340629ad19b6..642f5d3bed4019 100644 --- a/test/integration/fixtures/blocks/core__cover.parsed.json +++ b/test/integration/fixtures/blocks/core__cover.parsed.json @@ -14,9 +14,9 @@ "fontSize": "large" }, "innerBlocks": [], - "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", + "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", "innerContent": [ - "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" + "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover.serialized.html b/test/integration/fixtures/blocks/core__cover.serialized.html index 78b88ede59d38b..716b45e1579807 100644 --- a/test/integration/fixtures/blocks/core__cover.serialized.html +++ b/test/integration/fixtures/blocks/core__cover.serialized.html @@ -1,6 +1,6 @@+
Guten Berg!
Cover Image
+Cover Image
Cover Block
+Cover Block
Cover Block
+Cover Block
Cover Block
+Cover Block
Cover Block
\n\t\t", + "innerHTML": "\n\t\tCover Block
\n\t\t", "innerContent": [ - "\n\t\tCover Block
\n\t\t" + "\n\t\tCover Block
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-4.serialized.html b/test/integration/fixtures/blocks/core__cover__deprecated-4.serialized.html index e4fec9b98e228a..f19ba734a5bcce 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-4.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__deprecated-4.serialized.html @@ -1,5 +1,5 @@Cover Block
+Cover Block
Cover
+Cover
Cover
\n\t\t", + "innerHTML": "\n\t\tCover
\n\t\t", "innerContent": [ - "\n\t\tCover
\n\t\t" + "\n\t\tCover
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-5.serialized.html b/test/integration/fixtures/blocks/core__cover__deprecated-5.serialized.html index 35f8479c58169f..92e8d3c1a45340 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-5.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__deprecated-5.serialized.html @@ -1,5 +1,5 @@Cover
+Cover
+
Guten Berg!
@@ -19,7 +19,7 @@ >
test
+test
\n\t\t\tGuten Berg!\n\t\t
\n\t\t", + "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", "innerContent": [ - "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" + "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" ] } ], @@ -53,8 +53,10 @@ "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\t\n\t\t", - "innerContent": [ "\n\t\t\n\t\t" ] + "innerHTML": "\n\t\t\n\t\t", + "innerContent": [ + "\n\t\t\n\t\t" + ] } ], "innerHTML": "\ntest
\n\t\t", + "innerHTML": "\n\t\ttest
\n\t\t", "innerContent": [ - "\n\t\ttest
\n\t\t" + "\n\t\ttest
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-6.serialized.html b/test/integration/fixtures/blocks/core__cover__deprecated-6.serialized.html index e6f3628a1401f3..f90d5d93775ac0 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-6.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__deprecated-6.serialized.html @@ -1,6 +1,6 @@+
Guten Berg!


test
+test
+
Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-7.parsed.json b/test/integration/fixtures/blocks/core__cover__deprecated-7.parsed.json index f286f061a76c7a..7972f5b7d33093 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-7.parsed.json +++ b/test/integration/fixtures/blocks/core__cover__deprecated-7.parsed.json @@ -14,9 +14,9 @@ "fontSize": "large" }, "innerBlocks": [], - "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", + "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", "innerContent": [ - "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" + "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-7.serialized.html b/test/integration/fixtures/blocks/core__cover__deprecated-7.serialized.html index 758219f8b0e440..7804c8375497e1 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-7.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__deprecated-7.serialized.html @@ -1,6 +1,6 @@+
Guten Berg!
+
Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json b/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json index f90273321b52bb..c593241eb2faf5 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json +++ b/test/integration/fixtures/blocks/core__cover__deprecated-8.parsed.json @@ -14,9 +14,9 @@ "fontSize": "large" }, "innerBlocks": [], - "innerHTML": "\n\n Guten Berg!\n
\n ", + "innerHTML": "\n\n Guten Berg!\n
\n ", "innerContent": [ - "\n\n Guten Berg!\n
\n " + "\n\n Guten Berg!\n
\n " ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html b/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html index 7edbc1f1552679..02ccf1c387f2ab 100644 --- a/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__deprecated-8.serialized.html @@ -1,6 +1,6 @@+
Guten Berg!
Cover!
+Cover!
Cover!
\n\t\t", + "innerHTML": "\n\t\tCover!
\n\t\t", "innerContent": [ - "\n\t\tCover!
\n\t\t" + "\n\t\tCover!
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html index a6ea10215b7a1b..f21d00ec45164b 100644 --- a/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__gradient-custom.serialized.html @@ -1,5 +1,5 @@Cover!
+Cover!
Cover!
+Cover!
Cover!
\n\t\t", + "innerHTML": "\n\t\tCover!
\n\t\t", "innerContent": [ - "\n\t\tCover!
\n\t\t" + "\n\t\tCover!
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html index 22fbae8ff0ec36..c805798780b94c 100644 --- a/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__gradient-image.serialized.html @@ -1,5 +1,5 @@Cover!
+Cover!
Cover!
+Cover!
Cover!
\n\t\t", + "innerHTML": "\n\t\tCover!
\n\t\t", "innerContent": [ - "\n\t\tCover!
\n\t\t" + "\n\t\tCover!
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html index ab6f8bdd2a4ddf..5612d924796ef2 100644 --- a/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__gradient-video.serialized.html @@ -1,5 +1,5 @@Cover!
+Cover!
Cover!
+Cover!
Cover!
\n\t\t", + "innerHTML": "\n\t\tCover!
\n\t\t", "innerContent": [ - "\n\t\tCover!
\n\t\t" + "\n\t\tCover!
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__gradient.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient.serialized.html index 12f535f03d091a..cf1741d7ce5f3b 100644 --- a/test/integration/fixtures/blocks/core__cover__gradient.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__gradient.serialized.html @@ -1,5 +1,5 @@Cover!
+Cover!
Cover!
+Cover!
Cover!
\n ", + "innerHTML": "\nCover!
\n ", "innerContent": [ - "\nCover!
\n " + "\nCover!
\n " ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html index 9dbf400bcff0d8..ead7f0436917bb 100644 --- a/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__gradient__deprecated-8.serialized.html @@ -1,5 +1,5 @@Cover!
+Cover!
+
Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json b/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json index 25bc07b02d873e..898f64ead676dd 100644 --- a/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json +++ b/test/integration/fixtures/blocks/core__cover__video-overlay.parsed.json @@ -17,9 +17,9 @@ "fontSize": "large" }, "innerBlocks": [], - "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", + "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", "innerContent": [ - "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" + "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html b/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html index f46a2b18c7044c..a6602c6d5d07d2 100644 --- a/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__video-overlay.serialized.html @@ -1,6 +1,6 @@+
Guten Berg!
+
Guten Berg!
diff --git a/test/integration/fixtures/blocks/core__cover__video.parsed.json b/test/integration/fixtures/blocks/core__cover__video.parsed.json index 652886567348f8..9c2ab75a9a6aee 100644 --- a/test/integration/fixtures/blocks/core__cover__video.parsed.json +++ b/test/integration/fixtures/blocks/core__cover__video.parsed.json @@ -15,9 +15,9 @@ "fontSize": "large" }, "innerBlocks": [], - "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", + "innerHTML": "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t", "innerContent": [ - "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" + "\n\t\t\n\t\t\tGuten Berg!\n\t\t
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__cover__video.serialized.html b/test/integration/fixtures/blocks/core__cover__video.serialized.html index 9670adfd6c3cbd..9f73bf775751ba 100644 --- a/test/integration/fixtures/blocks/core__cover__video.serialized.html +++ b/test/integration/fixtures/blocks/core__cover__video.serialized.html @@ -1,6 +1,6 @@+
Guten Berg!
Details Content
+Details Content
Details Content
\n\t", - "innerContent": [ "\n\tDetails Content
\n\t" ] + "innerHTML": "\n\tDetails Content
\n\t", + "innerContent": [ + "\n\tDetails Content
\n\t" + ] } ], "innerHTML": "\nDetails Content
+Details Content
Your form has been submitted successfully.
+Your form has been submitted successfully.
Your form has been submitted successfully.
\n", + "innerHTML": "\nYour form has been submitted successfully.
\n", "innerContent": [ - "\nYour form has been submitted successfully.
\n" + "\nYour form has been submitted successfully.
\n" ] } ], diff --git a/test/integration/fixtures/blocks/core__form-submission-notification.serialized.html b/test/integration/fixtures/blocks/core__form-submission-notification.serialized.html index 696d0ff2118489..2d6e377c351e7b 100644 --- a/test/integration/fixtures/blocks/core__form-submission-notification.serialized.html +++ b/test/integration/fixtures/blocks/core__form-submission-notification.serialized.html @@ -1,5 +1,5 @@Your form has been submitted successfully.
+Your form has been submitted successfully.
This is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
\n\t", - "innerContent": [ "\n\tThis is a group block.
\n\t" ] + "innerHTML": "\n\tThis is a group block.
\n\t", + "innerContent": [ + "\n\tThis is a group block.
\n\t" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\tGroup block content.
\n\t", - "innerContent": [ "\n\tGroup block content.
\n\t" ] + "innerHTML": "\n\tGroup block content.
\n\t", + "innerContent": [ + "\n\tGroup block content.
\n\t" + ] } ], "innerHTML": "\nThis is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
\n\t", - "innerContent": [ "\n\tThis is a group block.
\n\t" ] + "innerHTML": "\n\tThis is a group block.
\n\t", + "innerContent": [ + "\n\tThis is a group block.
\n\t" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\tGroup block content.
\n\t", - "innerContent": [ "\n\tGroup block content.
\n\t" ] + "innerHTML": "\n\tGroup block content.
\n\t", + "innerContent": [ + "\n\tGroup block content.
\n\t" + ] } ], "innerHTML": "\nThis is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
\n\t", - "innerContent": [ "\n\tThis is a group block.
\n\t" ] + "innerHTML": "\n\tThis is a group block.
\n\t", + "innerContent": [ + "\n\tThis is a group block.
\n\t" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\tGroup block content.
\n\t", - "innerContent": [ "\n\tGroup block content.
\n\t" ] + "innerHTML": "\n\tGroup block content.
\n\t", + "innerContent": [ + "\n\tGroup block content.
\n\t" + ] } ], "innerHTML": "\nThis is a group block.
+This is a group block.
-Group block content.
+Group block content.
My paragraph
+My paragraph
My paragraph
\n\t\t", - "innerContent": [ "\n\t\tMy paragraph
\n\t\t" ] + "innerHTML": "\n\t\tMy paragraph
\n\t\t", + "innerContent": [ + "\n\t\tMy paragraph
\n\t\t" + ] } ], "innerHTML": "\nMy paragraph
+My paragraph
This is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
\n", - "innerContent": [ "\nThis is a group block.
\n" ] + "innerHTML": "\nThis is a group block.
\n", + "innerContent": [ + "\nThis is a group block.
\n" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\nGroup block content.
\n", - "innerContent": [ "\nGroup block content.
\n" ] + "innerHTML": "\nGroup block content.
\n", + "innerContent": [ + "\nGroup block content.
\n" + ] } ], "innerHTML": "\nThis is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
+This is a group block.
-Group block content.
+Group block content.
This is a group block.
\n\t\t", - "innerContent": [ "\n\t\tThis is a group block.
\n\t\t" ] + "innerHTML": "\n\t\tThis is a group block.
\n\t\t", + "innerContent": [ + "\n\t\tThis is a group block.
\n\t\t" + ] }, { "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\n\t\tGroup block content.
\n\t\t", - "innerContent": [ "\n\t\tGroup block content.
\n\t\t" ] + "innerHTML": "\n\t\tGroup block content.
\n\t\t", + "innerContent": [ + "\n\t\tGroup block content.
\n\t\t" + ] } ], "innerHTML": "\nThis is a group block.
+This is a group block.
-Group block content.
+Group block content.
test
+test
test
\n\t", - "innerContent": [ "\n\ttest
\n\t" ] + "innerHTML": "\n\ttest
\n\t", + "innerContent": [ + "\n\ttest
\n\t" + ] } ], "innerHTML": "\ntest
+test
My Content
+My Content
My Content
\n\t\t", + "innerHTML": "\n\t\tMy Content
\n\t\t", "innerContent": [ - "\n\t\tMy Content
\n\t\t" + "\n\t\tMy Content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text.serialized.html b/test/integration/fixtures/blocks/core__media-text.serialized.html index eae92996876bf9..a437c33cc9b2b2 100644 --- a/test/integration/fixtures/blocks/core__media-text.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text.serialized.html @@ -1,5 +1,5 @@My Content
+My Content
My Content
+My Content
My Content
+My Content
My Content
\n\t\t", - "innerContent": [ "\n\t\tMy Content
\n\t\t" ] + "innerHTML": "\n\t\tMy Content
\n\t\t", + "innerContent": [ + "\n\t\tMy Content
\n\t\t" + ] } ], "innerHTML": "\nMy Content
+My Content
My Content
+My Content
My Content
\n\t\t", + "innerHTML": "\n\t\tMy Content
\n\t\t", "innerContent": [ - "\n\t\tMy Content
\n\t\t" + "\n\t\tMy Content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__deprecated-v6-wide-default-align.serialized.html b/test/integration/fixtures/blocks/core__media-text__deprecated-v6-wide-default-align.serialized.html index aa018a73342161..289432cee2a944 100644 --- a/test/integration/fixtures/blocks/core__media-text__deprecated-v6-wide-default-align.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__deprecated-v6-wide-default-align.serialized.html @@ -1,5 +1,5 @@My Content
+My Content
My Content
+My Content
My Content
+My Content
My Content
+My Content
Content
+Content
Content
\n\t\t", + "innerHTML": "\n\t\tContent
\n\t\t", "innerContent": [ - "\n\t\tContent
\n\t\t" + "\n\t\tContent
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__image-alt-no-align.serialized.html b/test/integration/fixtures/blocks/core__media-text__image-alt-no-align.serialized.html index cd01616afd42e0..e3483ce6f8d2bc 100644 --- a/test/integration/fixtures/blocks/core__media-text__image-alt-no-align.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__image-alt-no-align.serialized.html @@ -1,5 +1,5 @@Content
+Content
My Content
+My Content
My Content
\n\t\t", + "innerHTML": "\n\t\tMy Content
\n\t\t", "innerContent": [ - "\n\t\tMy Content
\n\t\t" + "\n\t\tMy Content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__image-fill-no-focal-point-selected.serialized.html b/test/integration/fixtures/blocks/core__media-text__image-fill-no-focal-point-selected.serialized.html index b9d5e14f90277c..132e15ec11eeb5 100644 --- a/test/integration/fixtures/blocks/core__media-text__image-fill-no-focal-point-selected.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__image-fill-no-focal-point-selected.serialized.html @@ -1,5 +1,5 @@My Content
+My Content
My Content
+My Content
My Content
\n\t\t", + "innerHTML": "\n\t\tMy Content
\n\t\t", "innerContent": [ - "\n\t\tMy Content
\n\t\t" + "\n\t\tMy Content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__image-fill-with-focal-point-selected.serialized.html b/test/integration/fixtures/blocks/core__media-text__image-fill-with-focal-point-selected.serialized.html index 4b001f4f27c8ad..db9d250a7a9cb7 100644 --- a/test/integration/fixtures/blocks/core__media-text__image-fill-with-focal-point-selected.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__image-fill-with-focal-point-selected.serialized.html @@ -1,5 +1,5 @@My Content
+My Content
My Content
+My Content
My Content
\n\t\t", + "innerHTML": "\n\t\tMy Content
\n\t\t", "innerContent": [ - "\n\t\tMy Content
\n\t\t" + "\n\t\tMy Content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__is-stacked-on-mobile.serialized.html b/test/integration/fixtures/blocks/core__media-text__is-stacked-on-mobile.serialized.html index bd86c13cac2b11..cead3e6add4bf0 100644 --- a/test/integration/fixtures/blocks/core__media-text__is-stacked-on-mobile.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__is-stacked-on-mobile.serialized.html @@ -1,5 +1,5 @@My Content
+My Content
My video
+My video
My video
\n\t\t", + "innerHTML": "\n\t\tMy video
\n\t\t", "innerContent": [ - "\n\t\tMy video
\n\t\t" + "\n\t\tMy video
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__media-right-custom-width__deprecated.serialized.html b/test/integration/fixtures/blocks/core__media-text__media-right-custom-width__deprecated.serialized.html index bfeaedaadf047d..e3f43032fafee4 100644 --- a/test/integration/fixtures/blocks/core__media-text__media-right-custom-width__deprecated.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__media-right-custom-width__deprecated.serialized.html @@ -1,5 +1,5 @@My video
+My video
My content
+My content
My content
\n\t\t", + "innerHTML": "\n\t\tMy content
\n\t\t", "innerContent": [ - "\n\t\tMy content
\n\t\t" + "\n\t\tMy content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__vertical-align-bottom.serialized.html b/test/integration/fixtures/blocks/core__media-text__vertical-align-bottom.serialized.html index 2c1772e0edb762..30b5255597c382 100644 --- a/test/integration/fixtures/blocks/core__media-text__vertical-align-bottom.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__vertical-align-bottom.serialized.html @@ -1,5 +1,5 @@My content
+My content
My Content
+My Content
My Content
\n\t\t", + "innerHTML": "\n\t\tMy Content
\n\t\t", "innerContent": [ - "\n\t\tMy Content
\n\t\t" + "\n\t\tMy Content
\n\t\t" ] } ], diff --git a/test/integration/fixtures/blocks/core__media-text__video.serialized.html b/test/integration/fixtures/blocks/core__media-text__video.serialized.html index bd86c13cac2b11..cead3e6add4bf0 100644 --- a/test/integration/fixtures/blocks/core__media-text__video.serialized.html +++ b/test/integration/fixtures/blocks/core__media-text__video.serialized.html @@ -1,5 +1,5 @@My Content
+My Content
... like this one, which is separate from the above and right aligned.
+... like this one, which is separate from the above and right aligned.
diff --git a/test/integration/fixtures/blocks/core__paragraph__align-right.parsed.json b/test/integration/fixtures/blocks/core__paragraph__align-right.parsed.json index b25a5345e1360a..e19a8f3b334b37 100644 --- a/test/integration/fixtures/blocks/core__paragraph__align-right.parsed.json +++ b/test/integration/fixtures/blocks/core__paragraph__align-right.parsed.json @@ -5,9 +5,9 @@ "align": "right" }, "innerBlocks": [], - "innerHTML": "\n... like this one, which is separate from the above and right aligned.
\n", + "innerHTML": "\n... like this one, which is separate from the above and right aligned.
\n", "innerContent": [ - "\n... like this one, which is separate from the above and right aligned.
\n" + "\n... like this one, which is separate from the above and right aligned.
\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__paragraph__align-right.serialized.html b/test/integration/fixtures/blocks/core__paragraph__align-right.serialized.html index 3009f606904f61..083a43307486d7 100644 --- a/test/integration/fixtures/blocks/core__paragraph__align-right.serialized.html +++ b/test/integration/fixtures/blocks/core__paragraph__align-right.serialized.html @@ -1,3 +1,3 @@ -... like this one, which is separate from the above and right aligned.
+... like this one, which is separate from the above and right aligned.
diff --git a/test/integration/fixtures/blocks/core__paragraph__deprecated-4.serialized.html b/test/integration/fixtures/blocks/core__paragraph__deprecated-4.serialized.html index 3009f606904f61..083a43307486d7 100644 --- a/test/integration/fixtures/blocks/core__paragraph__deprecated-4.serialized.html +++ b/test/integration/fixtures/blocks/core__paragraph__deprecated-4.serialized.html @@ -1,3 +1,3 @@ -... like this one, which is separate from the above and right aligned.
+... like this one, which is separate from the above and right aligned.
diff --git a/test/integration/fixtures/blocks/core__paragraph__deprecated.serialized.html b/test/integration/fixtures/blocks/core__paragraph__deprecated.serialized.html index ddc0a9d9a1cf47..7a6d0aba767105 100644 --- a/test/integration/fixtures/blocks/core__paragraph__deprecated.serialized.html +++ b/test/integration/fixtures/blocks/core__paragraph__deprecated.serialized.html @@ -1,3 +1,3 @@ -Unwrapped is still valid.
+Unwrapped is still valid.
diff --git a/test/integration/fixtures/blocks/core__query-no-results.html b/test/integration/fixtures/blocks/core__query-no-results.html index defa48c4b45146..a55d00a32b56d9 100644 --- a/test/integration/fixtures/blocks/core__query-no-results.html +++ b/test/integration/fixtures/blocks/core__query-no-results.html @@ -1,5 +1,5 @@ - + diff --git a/test/integration/fixtures/blocks/core__query-no-results.parsed.json b/test/integration/fixtures/blocks/core__query-no-results.parsed.json index f0557a42c2f54b..82c27b8c11764c 100644 --- a/test/integration/fixtures/blocks/core__query-no-results.parsed.json +++ b/test/integration/fixtures/blocks/core__query-no-results.parsed.json @@ -9,8 +9,8 @@ "placeholder": "Add a text or blocks that will display when the query returns no results." }, "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ "\n\n" ] + "innerHTML": "\n\n", + "innerContent": [ "\n\n" ] } ], "innerHTML": "\n\n", diff --git a/test/integration/fixtures/blocks/core__query-no-results.serialized.html b/test/integration/fixtures/blocks/core__query-no-results.serialized.html index defa48c4b45146..a55d00a32b56d9 100644 --- a/test/integration/fixtures/blocks/core__query-no-results.serialized.html +++ b/test/integration/fixtures/blocks/core__query-no-results.serialized.html @@ -1,5 +1,5 @@ - + diff --git a/test/integration/fixtures/blocks/core__query__deprecated-3.html b/test/integration/fixtures/blocks/core__query__deprecated-3.html index 9da20c78184e2a..e2655570f74059 100644 --- a/test/integration/fixtures/blocks/core__query__deprecated-3.html +++ b/test/integration/fixtures/blocks/core__query__deprecated-3.html @@ -17,7 +17,7 @@ -No results found.
+No results found.
- \ No newline at end of file + diff --git a/test/integration/fixtures/blocks/core__query__deprecated-3.parsed.json b/test/integration/fixtures/blocks/core__query__deprecated-3.parsed.json index a26e573bac314b..2f0cc590c603dc 100644 --- a/test/integration/fixtures/blocks/core__query__deprecated-3.parsed.json +++ b/test/integration/fixtures/blocks/core__query__deprecated-3.parsed.json @@ -106,8 +106,10 @@ "placeholder": "Add text or blocks that will display when a query returns no results." }, "innerBlocks": [], - "innerHTML": "\nNo results found.
\n", - "innerContent": [ "\nNo results found.
\n" ] + "innerHTML": "\nNo results found.
\n", + "innerContent": [ + "\nNo results found.
\n" + ] } ], "innerHTML": "\n\n", diff --git a/test/integration/fixtures/blocks/core__query__deprecated-3.serialized.html b/test/integration/fixtures/blocks/core__query__deprecated-3.serialized.html index e6346c144a66ff..bd6ca06861af1d 100644 --- a/test/integration/fixtures/blocks/core__query__deprecated-3.serialized.html +++ b/test/integration/fixtures/blocks/core__query__deprecated-3.serialized.html @@ -18,7 +18,7 @@ -No results found.
+No results found.
diff --git a/test/integration/fixtures/blocks/core__quote__deprecated-1.serialized.html b/test/integration/fixtures/blocks/core__quote__deprecated-1.serialized.html index 9f06d2409dc7a7..0a6c1f98d00959 100644 --- a/test/integration/fixtures/blocks/core__quote__deprecated-1.serialized.html +++ b/test/integration/fixtures/blocks/core__quote__deprecated-1.serialized.html @@ -1,5 +1,5 @@-diff --git a/test/integration/fixtures/blocks/core__quote__deprecated-2.serialized.html b/test/integration/fixtures/blocks/core__quote__deprecated-2.serialized.html index 3d135fffad4374..41a9391ce0a64d 100644 --- a/test/integration/fixtures/blocks/core__quote__deprecated-2.serialized.html +++ b/test/integration/fixtures/blocks/core__quote__deprecated-2.serialized.html @@ -1,5 +1,5 @@Testing deprecated quote block...
+Testing deprecated quote block...
...with a caption
-diff --git a/test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.serialized.html b/test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.serialized.html index dfad3d54b991e4..8406d651145620 100644 --- a/test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.serialized.html +++ b/test/integration/fixtures/blocks/core__quote__deprecated-4-align-attribute.serialized.html @@ -1,5 +1,5 @@Testing deprecated quote block...
+Testing deprecated quote block...
...with a caption
-diff --git a/test/integration/fixtures/blocks/core__quote__style-1.html b/test/integration/fixtures/blocks/core__quote__style-1.html index 6a56433a56267d..978ba46ef3352d 100644 --- a/test/integration/fixtures/blocks/core__quote__style-1.html +++ b/test/integration/fixtures/blocks/core__quote__style-1.html @@ -1,5 +1,5 @@Quote with the align attribute. Example: {"align":"right"}
+Quote with the align attribute. Example: {"align":"right"}
-diff --git a/test/integration/fixtures/blocks/core__quote__style-1.parsed.json b/test/integration/fixtures/blocks/core__quote__style-1.parsed.json index 2491985cc6d87d..21800ea5393133 100644 --- a/test/integration/fixtures/blocks/core__quote__style-1.parsed.json +++ b/test/integration/fixtures/blocks/core__quote__style-1.parsed.json @@ -7,9 +7,9 @@ "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\nThe editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
+The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
Matt Mullenweg, 2017
The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
\n", + "innerHTML": "\nThe editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
\n", "innerContent": [ - "\nThe editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
\n" + "\nThe editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
\n" ] } ], diff --git a/test/integration/fixtures/blocks/core__quote__style-1.serialized.html b/test/integration/fixtures/blocks/core__quote__style-1.serialized.html index 6a56433a56267d..978ba46ef3352d 100644 --- a/test/integration/fixtures/blocks/core__quote__style-1.serialized.html +++ b/test/integration/fixtures/blocks/core__quote__style-1.serialized.html @@ -1,5 +1,5 @@-diff --git a/test/integration/fixtures/blocks/core__quote__style-2.html b/test/integration/fixtures/blocks/core__quote__style-2.html index 13c2762059ecfa..d290916afbb3a1 100644 --- a/test/integration/fixtures/blocks/core__quote__style-2.html +++ b/test/integration/fixtures/blocks/core__quote__style-2.html @@ -1,5 +1,5 @@The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
+The editor will endeavour to create a new page and post building experience that makes writing rich posts effortless, and has “blocks” to make it easy what today might take shortcodes, custom HTML, or “mystery meat” embed discovery.
Matt Mullenweg, 2017
-diff --git a/test/integration/fixtures/blocks/core__quote__style-2.parsed.json b/test/integration/fixtures/blocks/core__quote__style-2.parsed.json index e6eef0e2ba9ed1..b3e537dd9f56f2 100644 --- a/test/integration/fixtures/blocks/core__quote__style-2.parsed.json +++ b/test/integration/fixtures/blocks/core__quote__style-2.parsed.json @@ -9,9 +9,9 @@ "blockName": "core/paragraph", "attrs": {}, "innerBlocks": [], - "innerHTML": "\nThere is no greater agony than bearing an untold story inside you.
+There is no greater agony than bearing an untold story inside you.
Maya Angelou
There is no greater agony than bearing an untold story inside you.
\n", + "innerHTML": "\nThere is no greater agony than bearing an untold story inside you.
\n", "innerContent": [ - "\nThere is no greater agony than bearing an untold story inside you.
\n" + "\nThere is no greater agony than bearing an untold story inside you.
\n" ] } ], diff --git a/test/integration/fixtures/blocks/core__quote__style-2.serialized.html b/test/integration/fixtures/blocks/core__quote__style-2.serialized.html index 13c2762059ecfa..d290916afbb3a1 100644 --- a/test/integration/fixtures/blocks/core__quote__style-2.serialized.html +++ b/test/integration/fixtures/blocks/core__quote__style-2.serialized.html @@ -1,5 +1,5 @@-diff --git a/test/integration/fixtures/blocks/core__text__converts-to-paragraph.html b/test/integration/fixtures/blocks/core__text__converts-to-paragraph.html index a1d47a56e00228..be92e06db7b08b 100644 --- a/test/integration/fixtures/blocks/core__text__converts-to-paragraph.html +++ b/test/integration/fixtures/blocks/core__text__converts-to-paragraph.html @@ -1,3 +1,3 @@ -There is no greater agony than bearing an untold story inside you.
+There is no greater agony than bearing an untold story inside you.
Maya Angelou
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is an old-style text block. Changed to paragraph in #2135.
This is a title
+This is a title
-This is a heading
+This is a heading
-This is a paragraph with a link.
+This is a paragraph with a link.
@@ -47,5 +47,5 @@ -An image:
+An image:
diff --git a/test/integration/fixtures/documents/classic-out.html b/test/integration/fixtures/documents/classic-out.html index 089ab6ab92cca7..552d85174be417 100644 --- a/test/integration/fixtures/documents/classic-out.html +++ b/test/integration/fixtures/documents/classic-out.html @@ -1,5 +1,5 @@ -First paragraph
+First paragraph
@@ -7,15 +7,15 @@ -Second paragraph
+Second paragraph
-Third paragraph
+Third paragraph
-Fourth
+Fourth
@@ -23,13 +23,13 @@ -paragraph
+paragraph
-Fifth paragraph
+Fifth paragraph
-Sixth paragraph
+Sixth paragraph
diff --git a/test/integration/fixtures/documents/evernote-out.html b/test/integration/fixtures/documents/evernote-out.html index 2a7212f2e29b3d..3fd96bb90b06a7 100644 --- a/test/integration/fixtures/documents/evernote-out.html +++ b/test/integration/fixtures/documents/evernote-out.html @@ -1,9 +1,9 @@ -This is a paragraph.
+This is a paragraph.
-This is a link.
+This is a link.
diff --git a/test/integration/fixtures/documents/google-docs-out.html b/test/integration/fixtures/documents/google-docs-out.html index 3ee7d25875abc6..a10ce78c81c0c0 100644 --- a/test/integration/fixtures/documents/google-docs-out.html +++ b/test/integration/fixtures/documents/google-docs-out.html @@ -1,5 +1,5 @@ -This is a title
+This is a title
@@ -7,7 +7,7 @@Formatting test: bold, italic, link, strikethrough, superscript, subscript, nested.
Formatting test: bold, italic, link, strikethrough, superscript, subscript, nested.
An image:
+An image:
diff --git a/test/integration/fixtures/documents/google-docs-with-comments-out.html b/test/integration/fixtures/documents/google-docs-with-comments-out.html index 3ee7d25875abc6..a10ce78c81c0c0 100644 --- a/test/integration/fixtures/documents/google-docs-with-comments-out.html +++ b/test/integration/fixtures/documents/google-docs-with-comments-out.html @@ -1,5 +1,5 @@ -This is a title
+This is a title
@@ -7,7 +7,7 @@Formatting test: bold, italic, link, strikethrough, superscript, subscript, nested.
Formatting test: bold, italic, link, strikethrough, superscript, subscript, nested.
An image:
+An image:
diff --git a/test/integration/fixtures/documents/gutenberg-in.html b/test/integration/fixtures/documents/gutenberg-in.html index de01a2a22606a1..d7ff273e69fc58 100644 --- a/test/integration/fixtures/documents/gutenberg-in.html +++ b/test/integration/fixtures/documents/gutenberg-in.html @@ -1,3 +1,3 @@ -Test
+Test
diff --git a/test/integration/fixtures/documents/gutenberg-out.html b/test/integration/fixtures/documents/gutenberg-out.html index 83d523bbd73032..106d4e699c2278 100644 --- a/test/integration/fixtures/documents/gutenberg-out.html +++ b/test/integration/fixtures/documents/gutenberg-out.html @@ -1,3 +1,3 @@ -Test
+Test
diff --git a/test/integration/fixtures/documents/markdown-out.html b/test/integration/fixtures/documents/markdown-out.html index 9ed72f6d3ef6d3..f1535b8d5987aa 100644 --- a/test/integration/fixtures/documents/markdown-out.html +++ b/test/integration/fixtures/documents/markdown-out.html @@ -3,11 +3,11 @@This is a paragraph with a link, bold, and strikethrough.
This is a paragraph with a link, bold, and strikethrough.
Preserve
line breaks please.
Preserve
line breaks please.
-@@ -77,7 +77,7 @@First
+First
-Second
+Second
Inline code tags should work.
Inline code tags should work.
This is a text:
+This is a text:
@@ -21,5 +21,5 @@This is a heading
+This is a heading
-This is a paragraph with a link.
+This is a paragraph with a link.
@@ -43,7 +43,7 @@ -An image:
+An image:
diff --git a/test/integration/fixtures/documents/ms-word-out.html b/test/integration/fixtures/documents/ms-word-out.html index 81b82b5f9502fe..e937f59b190534 100644 --- a/test/integration/fixtures/documents/ms-word-out.html +++ b/test/integration/fixtures/documents/ms-word-out.html @@ -1,9 +1,9 @@ -This is a title
+This is a title
-This is a subtitle
+This is a subtitle
@@ -15,7 +15,7 @@This is a paragraph with a link.
+This is a paragraph with a link.
@@ -55,7 +55,7 @@An image:
+An image:
@@ -63,27 +63,27 @@This is an anchor link that leads to the next paragraph.
+This is an anchor link that leads to the next paragraph.
-This is the paragraph with the anchor.
+This is the paragraph with the anchor.
-This is an anchor link that leads nowhere.
+This is an anchor link that leads nowhere.
-This is a paragraph with an anchor with no link pointing to it.
+This is a paragraph with an anchor with no link pointing to it.
-This is a reference to a footnote[1].
+This is a reference to a footnote[1].
-This is a reference to an endnote[i].
+This is a reference to an endnote[i].
@@ -91,7 +91,7 @@[1] This is a footnote.
+[1] This is a footnote.
@@ -99,5 +99,5 @@[i] This is an endnote.
+[i] This is an endnote.
diff --git a/test/integration/fixtures/documents/ms-word-styled-out.html b/test/integration/fixtures/documents/ms-word-styled-out.html index 277d8d37bbc630..09d2d84fd03aed 100644 --- a/test/integration/fixtures/documents/ms-word-styled-out.html +++ b/test/integration/fixtures/documents/ms-word-styled-out.html @@ -1,7 +1,7 @@ -Lorem ipsum dolor sit amet, consectetur adipiscing elit
+Lorem ipsum dolor sit amet, consectetur adipiscing elit
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque aliquet hendrerit auctor. Nam lobortis, est vel lacinia tincidunt, purus tellus vehicula ex, nec pharetra justo dui sed lorem. Nam congue laoreet massa, quis varius est tincidunt ut.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque aliquet hendrerit auctor. Nam lobortis, est vel lacinia tincidunt, purus tellus vehicula ex, nec pharetra justo dui sed lorem. Nam congue laoreet massa, quis varius est tincidunt ut.
diff --git a/test/integration/fixtures/documents/nested-divs-out.html b/test/integration/fixtures/documents/nested-divs-out.html index 089ab6ab92cca7..552d85174be417 100644 --- a/test/integration/fixtures/documents/nested-divs-out.html +++ b/test/integration/fixtures/documents/nested-divs-out.html @@ -1,5 +1,5 @@ -First paragraph
+First paragraph
@@ -7,15 +7,15 @@ -Second paragraph
+Second paragraph
-Third paragraph
+Third paragraph
-Fourth
+Fourth
@@ -23,13 +23,13 @@ -paragraph
+paragraph
-Fifth paragraph
+Fifth paragraph
-Sixth paragraph
+Sixth paragraph
diff --git a/test/integration/fixtures/documents/plain-out.html b/test/integration/fixtures/documents/plain-out.html index ef9ecabfdcf318..52b3a4d8859362 100644 --- a/test/integration/fixtures/documents/plain-out.html +++ b/test/integration/fixtures/documents/plain-out.html @@ -1,7 +1,7 @@ -test
test
test
test
test
+test
diff --git a/test/integration/fixtures/documents/slack-paragraphs-out.html b/test/integration/fixtures/documents/slack-paragraphs-out.html index 462b64daeeb6a5..9b1a5cac3d5538 100644 --- a/test/integration/fixtures/documents/slack-paragraphs-out.html +++ b/test/integration/fixtures/documents/slack-paragraphs-out.html @@ -1,11 +1,11 @@ -test with link
a new line
test with link
a new line
a new paragraph
another new line
a new paragraph
another new line
another paragraph
- \ No newline at end of file +another paragraph
+ diff --git a/test/integration/fixtures/documents/slack-quote-out.html b/test/integration/fixtures/documents/slack-quote-out.html index b5f9f82483d788..26058242fd3291 100644 --- a/test/integration/fixtures/documents/slack-quote-out.html +++ b/test/integration/fixtures/documents/slack-quote-out.html @@ -1,5 +1,5 @@-- \ No newline at end of file + diff --git a/test/integration/fixtures/documents/windows.html b/test/integration/fixtures/documents/windows.html index 1d6125160ec081..558467169c1ad0 100644 --- a/test/integration/fixtures/documents/windows.html +++ b/test/integration/fixtures/documents/windows.html @@ -4,7 +4,7 @@Test with link.
+Test with link.
Paragraph Win
+Paragraph Win