diff --git a/test/integration/fixtures/blocks/core__form.html b/test/integration/fixtures/blocks/core__form.html index 9015fe38dd19c7..d6eafc3a66e136 100644 --- a/test/integration/fixtures/blocks/core__form.html +++ b/test/integration/fixtures/blocks/core__form.html @@ -1,18 +1,18 @@ - -
", + "originalContent": "\n\n" }, "innerBlocks": [ { - "name": "core/input-field", + "name": "core/missing", "isValid": true, "attributes": { - "type": "text", - "label": "Name - required, inline label", - "inlineLabel": true, - "required": true + "originalName": "core/input-field", + "originalUndelimitedContent": "", + "originalContent": "\n\n" }, "innerBlocks": [] }, { - "name": "core/input-field", + "name": "core/missing", "isValid": true, "attributes": { - "type": "checkbox", - "label": "Checkbox - inline label", - "inlineLabel": true, - "required": true + "originalName": "core/input-field", + "originalUndelimitedContent": "", + "originalContent": "\n\n" }, "innerBlocks": [] }, { - "name": "core/input-field", + "name": "core/missing", "isValid": true, "attributes": { - "type": "email", - "label": "Email - required", - "inlineLabel": false, - "required": true + "originalName": "core/input-field", + "originalUndelimitedContent": "", + "originalContent": "\n\n" }, "innerBlocks": [] }, { - "name": "core/input-field", + "name": "core/missing", "isValid": true, "attributes": { - "type": "textarea", - "label": "Textarea input", - "inlineLabel": false, - "required": false + "originalName": "core/input-field", + "originalUndelimitedContent": "", + "originalContent": "\n\n" }, "innerBlocks": [] }, { - "name": "core/input-field", + "name": "core/missing", "isValid": true, "attributes": { - "type": "submit", - "label": "Submit", - "inlineLabel": false, - "required": false + "originalName": "core/input-field", + "originalUndelimitedContent": " ", + "originalContent": "\n \n" }, "innerBlocks": [] } diff --git a/test/integration/fixtures/blocks/core__form.parsed.json b/test/integration/fixtures/blocks/core__form.parsed.json index 1cb360568ad8fb..49fad1dca14920 100644 --- a/test/integration/fixtures/blocks/core__form.parsed.json +++ b/test/integration/fixtures/blocks/core__form.parsed.json @@ -1,60 +1,56 @@ [ { "blockName": "core/form", - "attrs": { - "formId": "the-form-id" - }, + "attrs": {}, "innerBlocks": [ { "blockName": "core/input-field", "attrs": { - "label": "Name - required, inline label", - "inlineLabel": true, + "label": "Name", "required": true }, "innerBlocks": [], - "innerHTML": "\n\n", + "innerHTML": "\n\n", "innerContent": [ - "\n\n" + "\n\n" ] }, { "blockName": "core/input-field", "attrs": { - "type": "checkbox", - "label": "Checkbox - inline label", - "inlineLabel": true, + "type": "email", + "label": "Email", "required": true }, "innerBlocks": [], - "innerHTML": "\n\n", + "innerHTML": "\n\n", "innerContent": [ - "\n\n" + "\n\n" ] }, { "blockName": "core/input-field", "attrs": { - "type": "email", - "label": "Email - required", - "required": true + "type": "url", + "label": "Website" }, "innerBlocks": [], - "innerHTML": "\n\n", + "innerHTML": "\n\n", "innerContent": [ - "\n\n" + "\n\n" ] }, { "blockName": "core/input-field", "attrs": { "type": "textarea", - "label": "Textarea input" + "label": "Comment", + "required": true }, "innerBlocks": [], - "innerHTML": "\n\n", + "innerHTML": "\n\n", "innerContent": [ - "\n\n" + "\n\n" ] }, { @@ -70,9 +66,9 @@ ] } ], - "innerHTML": "\n\n", + "innerHTML": "\n\n", "innerContent": [ - "\n + + diff --git a/test/integration/fixtures/blocks/core__input-field.html b/test/integration/fixtures/blocks/core__input-field.html index 2574bc62f5c7cb..2d43ac55103b01 100644 --- a/test/integration/fixtures/blocks/core__input-field.html +++ b/test/integration/fixtures/blocks/core__input-field.html @@ -1,19 +1,3 @@ - - - - - - - - - - - - - - - - - - + + diff --git a/test/integration/fixtures/blocks/core__input-field.json b/test/integration/fixtures/blocks/core__input-field.json index 488701c5558f76..b0b6d508faeee9 100644 --- a/test/integration/fixtures/blocks/core__input-field.json +++ b/test/integration/fixtures/blocks/core__input-field.json @@ -1,56 +1,11 @@ [ { - "name": "core/input-field", + "name": "core/missing", "isValid": true, "attributes": { - "type": "text", - "label": "Name - required, inline label", - "inlineLabel": true, - "required": true - }, - "innerBlocks": [] - }, - { - "name": "core/input-field", - "isValid": true, - "attributes": { - "type": "checkbox", - "label": "Checkbox - inline label", - "inlineLabel": true, - "required": true - }, - "innerBlocks": [] - }, - { - "name": "core/input-field", - "isValid": true, - "attributes": { - "type": "email", - "label": "Email - required", - "inlineLabel": false, - "required": true - }, - "innerBlocks": [] - }, - { - "name": "core/input-field", - "isValid": true, - "attributes": { - "type": "textarea", - "label": "Textarea input", - "inlineLabel": false, - "required": false - }, - "innerBlocks": [] - }, - { - "name": "core/input-field", - "isValid": true, - "attributes": { - "type": "submit", - "label": "Submit", - "inlineLabel": false, - "required": false + "originalName": "core/input-field", + "originalUndelimitedContent": "", + "originalContent": "\n\n" }, "innerBlocks": [] } diff --git a/test/integration/fixtures/blocks/core__input-field.parsed.json b/test/integration/fixtures/blocks/core__input-field.parsed.json index 886e3e6d35ad8e..d731db37db5fbd 100644 --- a/test/integration/fixtures/blocks/core__input-field.parsed.json +++ b/test/integration/fixtures/blocks/core__input-field.parsed.json @@ -2,93 +2,13 @@ { "blockName": "core/input-field", "attrs": { - "label": "Name - required, inline label", - "inlineLabel": true, + "label": "Name", "required": true }, "innerBlocks": [], - "innerHTML": "\n\n", + "innerHTML": "\n\n", "innerContent": [ - "\n\n" - ] - }, - { - "blockName": null, - "attrs": {}, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ "\n\n" ] - }, - { - "blockName": "core/input-field", - "attrs": { - "type": "checkbox", - "label": "Checkbox - inline label", - "inlineLabel": true, - "required": true - }, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ - "\n\n" - ] - }, - { - "blockName": null, - "attrs": {}, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ "\n\n" ] - }, - { - "blockName": "core/input-field", - "attrs": { - "type": "email", - "label": "Email - required", - "required": true - }, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ - "\n\n" - ] - }, - { - "blockName": null, - "attrs": {}, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ "\n\n" ] - }, - { - "blockName": "core/input-field", - "attrs": { - "type": "textarea", - "label": "Textarea input" - }, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ - "\n\n" - ] - }, - { - "blockName": null, - "attrs": {}, - "innerBlocks": [], - "innerHTML": "\n\n", - "innerContent": [ "\n\n" ] - }, - { - "blockName": "core/input-field", - "attrs": { - "type": "submit", - "label": "Submit" - }, - "innerBlocks": [], - "innerHTML": "\n \n", - "innerContent": [ - "\n \n" + "\n\n" ] } ] diff --git a/test/integration/fixtures/blocks/core__input-field.serialized.html b/test/integration/fixtures/blocks/core__input-field.serialized.html index 2574bc62f5c7cb..5e444498bf5ffc 100644 --- a/test/integration/fixtures/blocks/core__input-field.serialized.html +++ b/test/integration/fixtures/blocks/core__input-field.serialized.html @@ -1,19 +1,3 @@ - - - - - - - - - - - - - - - - - - + +