From 263cabce39e00b16d7fefdcbb438a5e2e254dd5d Mon Sep 17 00:00:00 2001 From: Michal Czaplinski Date: Mon, 18 Sep 2023 19:02:42 +0100 Subject: [PATCH] Fix the block serialization tests --- ...image__deprecated-v8-deprecate-behaviors-lightbox.html | 2 +- ...image__deprecated-v8-deprecate-behaviors-lightbox.json | 8 ++++---- ...deprecated-v8-deprecate-behaviors-lightbox.parsed.json | 7 +++++-- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.html b/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.html index 9feeb105951da..3cdb772864b4d 100644 --- a/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.html +++ b/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.html @@ -1,3 +1,3 @@ - +
diff --git a/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.json b/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.json index a32f031dd34f4..73a483d911a78 100644 --- a/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.json +++ b/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.json @@ -6,12 +6,12 @@ "url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", "alt": "", "caption": "", - "lightbox": { - "enabled": true - }, "id": 8, "sizeSlug": "large", - "linkDestination": "none" + "linkDestination": "none", + "lightbox": { + "enabled": true + } }, "innerBlocks": [] } diff --git a/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.parsed.json b/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.parsed.json index 0ca652ff77f83..a582b93cab43b 100644 --- a/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.parsed.json +++ b/test/integration/fixtures/blocks/core__image__deprecated-v8-deprecate-behaviors-lightbox.parsed.json @@ -2,8 +2,11 @@ { "blockName": "core/image", "attrs": { - "lightbox": { - "enabled": true + "behaviors": { + "lightbox": { + "enabled": true, + "animation": "fade" + } }, "id": 8, "sizeSlug": "large",