Skip to content

Commit

Permalink
Blocks: Regenerate RSS, Search block fixtures (#14122)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored and youknowriad committed Mar 20, 2019
1 parent a4220ae commit b2d394c
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/e2e-tests/fixtures/blocks/core__rss.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:rss {"postLayout":"grid","feedURL":"https://wordpress.org/news/","postsToShow":4,"displayExcerpt":true,"displayAuthor":true,"displayDate":true,"excerptLength":20} /-->
<!-- wp:rss {"blockLayout":"grid","feedURL":"https://wordpress.org/news/","itemsToShow":4,"displayExcerpt":true,"displayAuthor":true,"displayDate":true,"excerptLength":20} /-->
11 changes: 10 additions & 1 deletion packages/e2e-tests/fixtures/blocks/core__rss.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
"clientId": "_clientId_0",
"name": "core/rss",
"isValid": true,
"attributes": {},
"attributes": {
"columns": 2,
"blockLayout": "grid",
"feedURL": "https://wordpress.org/news/",
"itemsToShow": 4,
"displayExcerpt": true,
"displayAuthor": true,
"displayDate": true,
"excerptLength": 20
},
"innerBlocks": [],
"originalContent": ""
}
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e-tests/fixtures/blocks/core__rss.parsed.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
"blockName": "core/rss",
"attrs": {
"postLayout": "grid",
"blockLayout": "grid",
"feedURL": "https://wordpress.org/news/",
"postsToShow": 4,
"itemsToShow": 4,
"displayExcerpt": true,
"displayAuthor": true,
"displayDate": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:rss /-->
<!-- wp:rss {"blockLayout":"grid","feedURL":"https://wordpress.org/news/","itemsToShow":4,"displayExcerpt":true,"displayAuthor":true,"displayDate":true,"excerptLength":20} /-->
6 changes: 5 additions & 1 deletion packages/e2e-tests/fixtures/blocks/core__search.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"clientId": "_clientId_0",
"name": "core/search",
"isValid": true,
"attributes": {},
"attributes": {
"label": "Search",
"placeholder": "",
"buttonText": "Search"
},
"innerBlocks": [],
"originalContent": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
"clientId": "_clientId_0",
"name": "core/search",
"isValid": true,
"attributes": {},
"attributes": {
"label": "Custom label",
"placeholder": "Custom placeholder",
"buttonText": "Custom button text"
},
"innerBlocks": [],
"originalContent": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{
"blockName": "core/search",
"attrs": {
"buttonText": "Custom button text",
"label": "Custom label",
"placeholder": "Custom placeholder"
"placeholder": "Custom placeholder",
"buttonText": "Custom button text"
},
"innerBlocks": [],
"innerHTML": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:search /-->
<!-- wp:search {"label":"Custom label","placeholder":"Custom placeholder","buttonText":"Custom button text"} /-->
2 changes: 1 addition & 1 deletion test/integration/full-content/server-registered.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"core\/block":{"attributes":{"ref":{"type":"number"}}},"core\/latest-comments":{"attributes":{"className":{"type":"string"},"commentsToShow":{"type":"number","default":5,"minimum":1,"maximum":100},"displayAvatar":{"type":"boolean","default":true},"displayDate":{"type":"boolean","default":true},"displayExcerpt":{"type":"boolean","default":true},"align":{"type":"string","enum":["center","left","right","wide","full",""]}}},"core\/archives":{"attributes":{"align":{"type":"string"},"className":{"type":"string"},"displayAsDropdown":{"type":"boolean","default":false},"showPostCounts":{"type":"boolean","default":false}}},"core\/latest-posts":{"attributes":{"categories":{"type":"string"},"className":{"type":"string"},"postsToShow":{"type":"number","default":5},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"align":{"type":"string"},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"}}},"core\/tag-cloud":{"attributes":{"taxonomy":{"type":"string","default":"tags"},"className":{"type":"string"},"showTagCounts":{"type":"boolean","default":false},"align":{"type":"string"}}}}
{"core\/block":{"attributes":{"ref":{"type":"number"}}},"core\/latest-comments":{"attributes":{"className":{"type":"string"},"commentsToShow":{"type":"number","default":5,"minimum":1,"maximum":100},"displayAvatar":{"type":"boolean","default":true},"displayDate":{"type":"boolean","default":true},"displayExcerpt":{"type":"boolean","default":true},"align":{"type":"string","enum":["center","left","right","wide","full",""]}}},"core\/archives":{"attributes":{"align":{"type":"string"},"className":{"type":"string"},"displayAsDropdown":{"type":"boolean","default":false},"showPostCounts":{"type":"boolean","default":false}}},"core\/calendar":{"attributes":{"align":{"type":"string"},"className":{"type":"string"},"month":{"type":"integer"},"year":{"type":"integer"}}},"core\/latest-posts":{"attributes":{"categories":{"type":"string"},"className":{"type":"string"},"postsToShow":{"type":"number","default":5},"displayPostDate":{"type":"boolean","default":false},"postLayout":{"type":"string","default":"list"},"columns":{"type":"number","default":3},"align":{"type":"string"},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"}}},"core\/rss":{"attributes":{"columns":{"type":"number","default":2},"blockLayout":{"type":"string","default":"list"},"feedURL":{"type":"string","default":""},"itemsToShow":{"type":"number","default":5},"displayExcerpt":{"type":"boolean","default":false},"displayAuthor":{"type":"boolean","default":false},"displayDate":{"type":"boolean","default":false},"excerptLength":{"type":"number","default":55}}},"core\/search":{"attributes":{"label":{"type":"string","default":"Search"},"placeholder":{"type":"string","default":""},"buttonText":{"type":"string","default":"Search"}}},"core\/tag-cloud":{"attributes":{"taxonomy":{"type":"string","default":"post_tag"},"className":{"type":"string"},"showTagCounts":{"type":"boolean","default":false},"align":{"type":"string"}}}}

0 comments on commit b2d394c

Please sign in to comment.