From 448e3c250689c3c7462c04f27b43ffad414f4f7a Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Tue, 26 Feb 2019 10:29:28 -0500 Subject: [PATCH] Blocks: Regenerate RSS, Search block fixtures --- packages/e2e-tests/fixtures/blocks/core__rss.html | 2 +- packages/e2e-tests/fixtures/blocks/core__rss.json | 11 ++++++++++- .../e2e-tests/fixtures/blocks/core__rss.parsed.json | 4 ++-- .../fixtures/blocks/core__rss.serialized.html | 2 +- packages/e2e-tests/fixtures/blocks/core__search.json | 6 +++++- .../fixtures/blocks/core__search__custom-text.json | 6 +++++- .../blocks/core__search__custom-text.parsed.json | 4 ++-- .../blocks/core__search__custom-text.serialized.html | 2 +- test/integration/full-content/server-registered.json | 2 +- 9 files changed, 28 insertions(+), 11 deletions(-) diff --git a/packages/e2e-tests/fixtures/blocks/core__rss.html b/packages/e2e-tests/fixtures/blocks/core__rss.html index ce652528301c6..69b41ce041862 100644 --- a/packages/e2e-tests/fixtures/blocks/core__rss.html +++ b/packages/e2e-tests/fixtures/blocks/core__rss.html @@ -1 +1 @@ - + diff --git a/packages/e2e-tests/fixtures/blocks/core__rss.json b/packages/e2e-tests/fixtures/blocks/core__rss.json index 89de06cd2d78d..09f43cf2e1e25 100644 --- a/packages/e2e-tests/fixtures/blocks/core__rss.json +++ b/packages/e2e-tests/fixtures/blocks/core__rss.json @@ -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": "" } diff --git a/packages/e2e-tests/fixtures/blocks/core__rss.parsed.json b/packages/e2e-tests/fixtures/blocks/core__rss.parsed.json index bdc596b09a5a1..e55306214e219 100644 --- a/packages/e2e-tests/fixtures/blocks/core__rss.parsed.json +++ b/packages/e2e-tests/fixtures/blocks/core__rss.parsed.json @@ -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, diff --git a/packages/e2e-tests/fixtures/blocks/core__rss.serialized.html b/packages/e2e-tests/fixtures/blocks/core__rss.serialized.html index c6d9be22646e7..69b41ce041862 100644 --- a/packages/e2e-tests/fixtures/blocks/core__rss.serialized.html +++ b/packages/e2e-tests/fixtures/blocks/core__rss.serialized.html @@ -1 +1 @@ - + diff --git a/packages/e2e-tests/fixtures/blocks/core__search.json b/packages/e2e-tests/fixtures/blocks/core__search.json index e1397fdc9a37a..dbf8ea090062e 100644 --- a/packages/e2e-tests/fixtures/blocks/core__search.json +++ b/packages/e2e-tests/fixtures/blocks/core__search.json @@ -3,7 +3,11 @@ "clientId": "_clientId_0", "name": "core/search", "isValid": true, - "attributes": {}, + "attributes": { + "label": "Search", + "placeholder": "", + "buttonText": "Search" + }, "innerBlocks": [], "originalContent": "" } diff --git a/packages/e2e-tests/fixtures/blocks/core__search__custom-text.json b/packages/e2e-tests/fixtures/blocks/core__search__custom-text.json index e1397fdc9a37a..fb91161919c83 100644 --- a/packages/e2e-tests/fixtures/blocks/core__search__custom-text.json +++ b/packages/e2e-tests/fixtures/blocks/core__search__custom-text.json @@ -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": "" } diff --git a/packages/e2e-tests/fixtures/blocks/core__search__custom-text.parsed.json b/packages/e2e-tests/fixtures/blocks/core__search__custom-text.parsed.json index fd128b35f93c8..6b67b6d21a472 100644 --- a/packages/e2e-tests/fixtures/blocks/core__search__custom-text.parsed.json +++ b/packages/e2e-tests/fixtures/blocks/core__search__custom-text.parsed.json @@ -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": "", diff --git a/packages/e2e-tests/fixtures/blocks/core__search__custom-text.serialized.html b/packages/e2e-tests/fixtures/blocks/core__search__custom-text.serialized.html index f62e8a853c2ea..bb6e6a56c9a33 100644 --- a/packages/e2e-tests/fixtures/blocks/core__search__custom-text.serialized.html +++ b/packages/e2e-tests/fixtures/blocks/core__search__custom-text.serialized.html @@ -1 +1 @@ - + diff --git a/test/integration/full-content/server-registered.json b/test/integration/full-content/server-registered.json index 080865f39bb10..eeae11cb99e9c 100644 --- a/test/integration/full-content/server-registered.json +++ b/test/integration/full-content/server-registered.json @@ -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"}}}} \ No newline at end of file +{"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"}}}} \ No newline at end of file