Skip to content

Commit

Permalink
Fix core__quote__style-2 test
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Oct 9, 2020
1 parent 3eb7a9f commit 74bb68a
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
{
"clientId": "_clientId_0",
"name": "core/quote",
"isValid": true,
"isValid": false,
"attributes": {
"value": "<p>Testing deprecated quote block...</p>",
"citation": "...with a caption",
"align": "right"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<!-- wp:quote {"align":"right"} -->
<blockquote class="wp-block-quote has-text-align-right"><p>Testing deprecated quote block...</p><cite>...with a caption</cite></blockquote>
<blockquote style="text-align:right" class="wp-block-quote">
<p>Testing deprecated quote block...</p>
<cite>...with a caption</cite>
</blockquote>
<!-- /wp:quote -->
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- wp:core/quote {"className":"is-style-large"} -->
<blockquote class="wp-block-quote is-style-large"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>
<blockquote class="wp-block-quote is-style-large"><!-- wp:core/paragraph --><p>There is no greater agony than bearing an untold story inside you.</p><!-- /wp:core/paragraph --><cite>Maya Angelou</cite></blockquote>
<!-- /wp:core/quote -->
17 changes: 14 additions & 3 deletions packages/e2e-tests/fixtures/blocks/core__quote__style-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@
"name": "core/quote",
"isValid": true,
"attributes": {
"value": "<p>There is no greater agony than bearing an untold story inside you.</p>",
"citation": "Maya Angelou",
"className": "is-style-large"
},
"innerBlocks": [],
"originalContent": "<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>"
"innerBlocks": [
{
"clientId": "_clientId_0",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": "There is no greater agony than bearing an untold story inside you.",
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p>There is no greater agony than bearing an untold story inside you.</p>"
}
],
"originalContent": "<blockquote class=\"wp-block-quote is-style-large\"><cite>Maya Angelou</cite></blockquote>"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,22 @@
"attrs": {
"className": "is-style-large"
},
"innerBlocks": [],
"innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n",
"innerBlocks": [
{
"blockName": "core/paragraph",
"attrs": {},
"innerBlocks": [],
"innerHTML": "<p>There is no greater agony than bearing an untold story inside you.</p>",
"innerContent": [
"<p>There is no greater agony than bearing an untold story inside you.</p>"
]
}
],
"innerHTML": "\n<blockquote class=\"wp-block-quote is-style-large\"><cite>Maya Angelou</cite></blockquote>\n",
"innerContent": [
"\n<blockquote class=\"wp-block-quote is-style-large\"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>\n"
"\n<blockquote class=\"wp-block-quote is-style-large\">",
null,
"<cite>Maya Angelou</cite></blockquote>\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- wp:quote {"className":"is-style-large"} -->
<blockquote class="wp-block-quote is-style-large"><p>There is no greater agony than bearing an untold story inside you.</p><cite>Maya Angelou</cite></blockquote>
<blockquote class="wp-block-quote is-style-large"><!-- wp:paragraph -->
<p>There is no greater agony than bearing an untold story inside you.</p>
<!-- /wp:paragraph --><cite>Maya Angelou</cite></blockquote>
<!-- /wp:quote -->

0 comments on commit 74bb68a

Please sign in to comment.