Skip to content

Commit

Permalink
Fix core__quote__style-1 test
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 9, 2020
1 parent e8f0713 commit 3eb7a9f
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
{
"clientId": "_clientId_0",
"name": "core/quote",
"isValid": true,
"isValid": false,
"attributes": {
"value": "<p>Testing deprecated quote block...</p>",
"citation": "...with a caption",
"style": 1
"citation": "",
"className": "blocks-quote-style-1"
},
"innerBlocks": [],
"originalContent": "<blockquote class=\"wp-block-quote blocks-quote-style-1\">\n\t<p>Testing deprecated quote block...</p>\n\t<footer>...with a caption</footer>\n</blockquote>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>Testing deprecated quote block...</p><cite>...with a caption</cite></blockquote>
<!-- wp:quote {"className":"blocks-quote-style-1"} -->
<blockquote class="wp-block-quote blocks-quote-style-1">
<p>Testing deprecated quote block...</p>
<footer>...with a caption</footer>
</blockquote>
<!-- /wp:quote -->
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- wp:core/quote -->
<blockquote class="wp-block-quote"><p>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.</p><cite>Matt Mullenweg, 2017</cite></blockquote>
<blockquote class="wp-block-quote"><!-- wp:core/paragraph --><p>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.</p><!-- /wp:core/paragraph --><cite>Matt Mullenweg, 2017</cite></blockquote>
<!-- /wp:core/quote -->
17 changes: 14 additions & 3 deletions packages/e2e-tests/fixtures/blocks/core__quote__style-1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@
"name": "core/quote",
"isValid": true,
"attributes": {
"value": "<p>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.</p>",
"citation": "Matt Mullenweg, 2017"
},
"innerBlocks": [],
"originalContent": "<blockquote class=\"wp-block-quote\"><p>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.</p><cite>Matt Mullenweg, 2017</cite></blockquote>"
"innerBlocks": [
{
"clientId": "_clientId_0",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": "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.",
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>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.</p>"
}
],
"originalContent": "<blockquote class=\"wp-block-quote\"><cite>Matt Mullenweg, 2017</cite></blockquote>"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,22 @@
{
"blockName": "core/quote",
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n<blockquote class=\"wp-block-quote\"><p>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.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n",
"innerBlocks": [
{
"blockName": "core/paragraph",
"attrs": {},
"innerBlocks": [],
"innerHTML": "<p>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.</p>",
"innerContent": [
"<p>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.</p>"
]
}
],
"innerHTML": "\n<blockquote class=\"wp-block-quote\"><cite>Matt Mullenweg, 2017</cite></blockquote>\n",
"innerContent": [
"\n<blockquote class=\"wp-block-quote\"><p>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.</p><cite>Matt Mullenweg, 2017</cite></blockquote>\n"
"\n<blockquote class=\"wp-block-quote\">",
null,
"<cite>Matt Mullenweg, 2017</cite></blockquote>\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- wp:quote -->
<blockquote class="wp-block-quote"><p>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.</p><cite>Matt Mullenweg, 2017</cite></blockquote>
<blockquote class="wp-block-quote"><!-- wp:paragraph -->
<p>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.</p>
<!-- /wp:paragraph --><cite>Matt Mullenweg, 2017</cite></blockquote>
<!-- /wp:quote -->

0 comments on commit 3eb7a9f

Please sign in to comment.