Skip to content

Commit

Permalink
Add test fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
George Hotelling committed Jul 31, 2020
1 parent 50ae932 commit a1e07cf
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/e2e-tests/fixtures/blocks/core__details.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- wp:core/details {"content": "This is the summary ", "initialOpen": false} -->
<details class="wp-block-details">
<summary>This is the summary </summary>
<!-- wp:heading -->
<h2>More here</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->
</details>
<!-- /wp:core/details -->
36 changes: 36 additions & 0 deletions packages/e2e-tests/fixtures/blocks/core__details.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[
{
"clientId": "_clientId_0",
"name": "core/details",
"isValid": true,
"attributes": {
"initialOpen": false,
"content": "This is the summary "
},
"innerBlocks": [
{
"clientId": "_clientId_0",
"name": "core/heading",
"isValid": true,
"attributes": {
"content": "More here",
"level": 2
},
"innerBlocks": [],
"originalContent": "<h2>More here</h2>"
},
{
"clientId": "_clientId_1",
"name": "core/paragraph",
"isValid": true,
"attributes": {
"content": "",
"dropCap": false
},
"innerBlocks": [],
"originalContent": "<p></p>"
}
],
"originalContent": "<details class=\"wp-block-details\">\n\t<summary>This is the summary </summary>\n\t\n\n\t\n</details>"
}
]
46 changes: 46 additions & 0 deletions packages/e2e-tests/fixtures/blocks/core__details.parsed.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[
{
"blockName": "core/details",
"attrs": {
"content": "This is the summary ",
"initialOpen": false
},
"innerBlocks": [
{
"blockName": "core/heading",
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n\t<h2>More here</h2>\n\t",
"innerContent": [
"\n\t<h2>More here</h2>\n\t"
]
},
{
"blockName": "core/paragraph",
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n\t<p></p>\n\t",
"innerContent": [
"\n\t<p></p>\n\t"
]
}
],
"innerHTML": "\n<details class=\"wp-block-details\">\n\t<summary>This is the summary </summary>\n\t\n\n\t\n</details>\n",
"innerContent": [
"\n<details class=\"wp-block-details\">\n\t<summary>This is the summary </summary>\n\t",
null,
"\n\n\t",
null,
"\n</details>\n"
]
},
{
"blockName": null,
"attrs": {},
"innerBlocks": [],
"innerHTML": "\n",
"innerContent": [
"\n"
]
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!-- wp:details {"content":"This is the summary "} -->
<details class="wp-block-details"><summary>This is the summary </summary><!-- wp:heading -->
<h2>More here</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph --></details>
<!-- /wp:details -->

0 comments on commit a1e07cf

Please sign in to comment.