From 172ee459d61b4904f3b037a97fc9071b82a6f14c Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 9 Feb 2023 14:39:47 +0100 Subject: [PATCH] Fix unit tests --- .../test/__snapshots__/control.js.snap | 30 ++++++++------- .../test/__snapshots__/index.tsx.snap | 30 ++++++++------- .../v-stack/test/__snapshots__/index.tsx.snap | 38 ++++++++++--------- 3 files changed, 52 insertions(+), 46 deletions(-) diff --git a/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap b/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap index d9a9a3f0fad03..c671725484706 100644 --- a/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap +++ b/packages/block-editor/src/components/color-palette/test/__snapshots__/control.js.snap @@ -22,17 +22,18 @@ exports[`ColorPaletteControl matches the snapshot 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: strech; + -webkit-box-align: strech; + -ms-flex-align: strech; + align-items: strech; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; gap: calc(4px * 1); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; } .emotion-4>* { @@ -54,17 +55,18 @@ exports[`ColorPaletteControl matches the snapshot 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: strech; + -webkit-box-align: strech; + -ms-flex-align: strech; + align-items: strech; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; gap: calc(4px * 3); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; } .emotion-8>* { diff --git a/packages/components/src/color-palette/test/__snapshots__/index.tsx.snap b/packages/components/src/color-palette/test/__snapshots__/index.tsx.snap index f6ef41cc1be8d..4c47758f8afb6 100644 --- a/packages/components/src/color-palette/test/__snapshots__/index.tsx.snap +++ b/packages/components/src/color-palette/test/__snapshots__/index.tsx.snap @@ -6,17 +6,18 @@ exports[`ColorPalette should allow disabling custom color picker 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: strech; + -webkit-box-align: strech; + -ms-flex-align: strech; + align-items: strech; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; gap: calc(4px * 3); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; } .emotion-0>* { @@ -103,17 +104,18 @@ exports[`ColorPalette should render a dynamic toolbar of colors 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: strech; + -webkit-box-align: strech; + -ms-flex-align: strech; + align-items: strech; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; gap: calc(4px * 3); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; } .emotion-0>* { diff --git a/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap b/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap index 9404cbb976b97..7502ff77d5f5d 100644 --- a/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap +++ b/packages/components/src/v-stack/test/__snapshots__/index.tsx.snap @@ -6,10 +6,10 @@ exports[`props should render alignment 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; @@ -46,17 +46,18 @@ exports[`props should render correctly 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: strech; + -webkit-box-align: strech; + -ms-flex-align: strech; + align-items: strech; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; gap: calc(4px * 2); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; } .emotion-0>* { @@ -85,17 +86,18 @@ exports[`props should render spacing 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; - -webkit-align-items: normal; - -webkit-box-align: normal; - -ms-flex-align: normal; - align-items: normal; + -webkit-align-items: strech; + -webkit-box-align: strech; + -ms-flex-align: strech; + align-items: strech; -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; gap: calc(4px * 5); - -webkit-box-pack: justify; - -webkit-justify-content: space-between; - justify-content: space-between; + -webkit-box-pack: center; + -ms-flex-pack: center; + -webkit-justify-content: center; + justify-content: center; } .emotion-0>* {