From 9d8d117267c6aa9838640c61afc727b9a6278afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Wed, 20 Jun 2018 20:04:04 +0200 Subject: [PATCH] Remove React-related attributes from pullquote multi-paragraph block fixtures Using nested elements in the pullquote multi-paragraph value was making the parser to store React properties. That was producing unexpected effects when other tests were added. In order to keep those tests with a single purpose it's better to keep the values simple without nested elements, so it doesn't depend on the React version in use. --- .../core__pullquote__multi-paragraph.html | 2 +- .../core__pullquote__multi-paragraph.json | 16 ++-------------- .../core__pullquote__multi-paragraph.parsed.json | 2 +- ...e__pullquote__multi-paragraph.serialized.html | 2 +- 4 files changed, 5 insertions(+), 17 deletions(-) diff --git a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.html b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.html index 113d829d01329..74a32f43fdb1f 100644 --- a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.html +++ b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.html @@ -1,6 +1,6 @@
-

Paragraph one

+

Paragraph one

Paragraph two

by whomever
diff --git a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.json b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.json index c2a6c0d770de7..7774187f2b878 100644 --- a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.json +++ b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.json @@ -11,19 +11,7 @@ "key": null, "ref": null, "props": { - "children": [ - "Paragraph ", - { - "type": "strong", - "key": "_domReact71", - "ref": null, - "props": { - "children": "one" - }, - "_owner": null, - "_store": {} - } - ] + "children": "Paragraph one" }, "_owner": null, "_store": {} @@ -48,6 +36,6 @@ "align": "none" }, "innerBlocks": [], - "originalContent": "
\n

Paragraph one

\n

Paragraph two

\n by whomever\n
" + "originalContent": "
\n

Paragraph one

\n

Paragraph two

\n by whomever\n
" } ] diff --git a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.parsed.json b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.parsed.json index 4821344abd80a..2011f6987696b 100644 --- a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.parsed.json +++ b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.parsed.json @@ -3,7 +3,7 @@ "blockName": "core/pullquote", "attrs": null, "innerBlocks": [], - "innerHTML": "\n
\n

Paragraph one

\n

Paragraph two

\n by whomever\n
\n" + "innerHTML": "\n
\n

Paragraph one

\n

Paragraph two

\n by whomever\n
\n" }, { "attrs": {}, diff --git a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.serialized.html b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.serialized.html index 58d4022398773..f9a782728a5ee 100644 --- a/core-blocks/test/fixtures/core__pullquote__multi-paragraph.serialized.html +++ b/core-blocks/test/fixtures/core__pullquote__multi-paragraph.serialized.html @@ -1,5 +1,5 @@
-

Paragraph one

+

Paragraph one

Paragraph two

by whomever