From c222f887ff5c12d59128e18c1eb31ce591c960ba Mon Sep 17 00:00:00 2001 From: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> Date: Wed, 28 Aug 2024 17:44:20 +0700 Subject: [PATCH] Add base fixtures for checkbox, radio, and textarea inputs --- .../blocks/core__form-input__checkbox.html | 3 +++ .../blocks/core__form-input__checkbox.json | 15 +++++++++++++++ .../blocks/core__form-input__checkbox.parsed.json | 14 ++++++++++++++ .../core__form-input__checkbox.serialized.html | 3 +++ .../fixtures/blocks/core__form-input__radio.html | 3 +++ .../fixtures/blocks/core__form-input__radio.json | 15 +++++++++++++++ .../blocks/core__form-input__radio.parsed.json | 14 ++++++++++++++ .../core__form-input__radio.serialized.html | 3 +++ .../blocks/core__form-input__textarea.html | 3 +++ .../blocks/core__form-input__textarea.json | 15 +++++++++++++++ .../blocks/core__form-input__textarea.parsed.json | 13 +++++++++++++ .../core__form-input__textarea.serialized.html | 3 +++ 12 files changed, 104 insertions(+) create mode 100644 test/integration/fixtures/blocks/core__form-input__checkbox.html create mode 100644 test/integration/fixtures/blocks/core__form-input__checkbox.json create mode 100644 test/integration/fixtures/blocks/core__form-input__checkbox.parsed.json create mode 100644 test/integration/fixtures/blocks/core__form-input__checkbox.serialized.html create mode 100644 test/integration/fixtures/blocks/core__form-input__radio.html create mode 100644 test/integration/fixtures/blocks/core__form-input__radio.json create mode 100644 test/integration/fixtures/blocks/core__form-input__radio.parsed.json create mode 100644 test/integration/fixtures/blocks/core__form-input__radio.serialized.html create mode 100644 test/integration/fixtures/blocks/core__form-input__textarea.html create mode 100644 test/integration/fixtures/blocks/core__form-input__textarea.json create mode 100644 test/integration/fixtures/blocks/core__form-input__textarea.parsed.json create mode 100644 test/integration/fixtures/blocks/core__form-input__textarea.serialized.html diff --git a/test/integration/fixtures/blocks/core__form-input__checkbox.html b/test/integration/fixtures/blocks/core__form-input__checkbox.html new file mode 100644 index 00000000000000..fd08525a17eb33 --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__checkbox.html @@ -0,0 +1,3 @@ + +
+ diff --git a/test/integration/fixtures/blocks/core__form-input__checkbox.json b/test/integration/fixtures/blocks/core__form-input__checkbox.json new file mode 100644 index 00000000000000..cc86ecd2a9080b --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__checkbox.json @@ -0,0 +1,15 @@ +[ + { + "name": "core/form-input", + "isValid": true, + "attributes": { + "type": "checkbox", + "label": "Label", + "inlineLabel": true, + "required": true, + "value": "", + "visibilityPermissions": "all" + }, + "innerBlocks": [] + } +] diff --git a/test/integration/fixtures/blocks/core__form-input__checkbox.parsed.json b/test/integration/fixtures/blocks/core__form-input__checkbox.parsed.json new file mode 100644 index 00000000000000..60b7b7dd37b091 --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__checkbox.parsed.json @@ -0,0 +1,14 @@ +[ + { + "blockName": "core/form-input", + "attrs": { + "type": "checkbox", + "inlineLabel": true + }, + "innerBlocks": [], + "innerHTML": "\n
\n", + "innerContent": [ + "\n
\n" + ] + } +] diff --git a/test/integration/fixtures/blocks/core__form-input__checkbox.serialized.html b/test/integration/fixtures/blocks/core__form-input__checkbox.serialized.html new file mode 100644 index 00000000000000..fd08525a17eb33 --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__checkbox.serialized.html @@ -0,0 +1,3 @@ + +
+ diff --git a/test/integration/fixtures/blocks/core__form-input__radio.html b/test/integration/fixtures/blocks/core__form-input__radio.html new file mode 100644 index 00000000000000..1e6c76424334fb --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__radio.html @@ -0,0 +1,3 @@ + +
+ diff --git a/test/integration/fixtures/blocks/core__form-input__radio.json b/test/integration/fixtures/blocks/core__form-input__radio.json new file mode 100644 index 00000000000000..18cec11e3305b1 --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__radio.json @@ -0,0 +1,15 @@ +[ + { + "name": "core/form-input", + "isValid": true, + "attributes": { + "type": "radio", + "label": "Label", + "inlineLabel": true, + "required": true, + "value": "", + "visibilityPermissions": "all" + }, + "innerBlocks": [] + } +] diff --git a/test/integration/fixtures/blocks/core__form-input__radio.parsed.json b/test/integration/fixtures/blocks/core__form-input__radio.parsed.json new file mode 100644 index 00000000000000..8dbb5b5a09942a --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__radio.parsed.json @@ -0,0 +1,14 @@ +[ + { + "blockName": "core/form-input", + "attrs": { + "type": "radio", + "inlineLabel": true + }, + "innerBlocks": [], + "innerHTML": "\n
\n", + "innerContent": [ + "\n
\n" + ] + } +] diff --git a/test/integration/fixtures/blocks/core__form-input__radio.serialized.html b/test/integration/fixtures/blocks/core__form-input__radio.serialized.html new file mode 100644 index 00000000000000..1e6c76424334fb --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__radio.serialized.html @@ -0,0 +1,3 @@ + +
+ diff --git a/test/integration/fixtures/blocks/core__form-input__textarea.html b/test/integration/fixtures/blocks/core__form-input__textarea.html new file mode 100644 index 00000000000000..b39e1c8b51166f --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__textarea.html @@ -0,0 +1,3 @@ + +
+ diff --git a/test/integration/fixtures/blocks/core__form-input__textarea.json b/test/integration/fixtures/blocks/core__form-input__textarea.json new file mode 100644 index 00000000000000..62ae6f76a0e9d2 --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__textarea.json @@ -0,0 +1,15 @@ +[ + { + "name": "core/form-input", + "isValid": true, + "attributes": { + "type": "textarea", + "label": "Label", + "inlineLabel": false, + "required": true, + "value": "", + "visibilityPermissions": "all" + }, + "innerBlocks": [] + } +] diff --git a/test/integration/fixtures/blocks/core__form-input__textarea.parsed.json b/test/integration/fixtures/blocks/core__form-input__textarea.parsed.json new file mode 100644 index 00000000000000..3f76a2194f27e4 --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__textarea.parsed.json @@ -0,0 +1,13 @@ +[ + { + "blockName": "core/form-input", + "attrs": { + "type": "textarea" + }, + "innerBlocks": [], + "innerHTML": "\n
\n", + "innerContent": [ + "\n
\n" + ] + } +] diff --git a/test/integration/fixtures/blocks/core__form-input__textarea.serialized.html b/test/integration/fixtures/blocks/core__form-input__textarea.serialized.html new file mode 100644 index 00000000000000..b39e1c8b51166f --- /dev/null +++ b/test/integration/fixtures/blocks/core__form-input__textarea.serialized.html @@ -0,0 +1,3 @@ + +
+