From 0af83d5f3b643a563e965e21ebdcd14ef15ee288 Mon Sep 17 00:00:00 2001 From: Norton Andreev Date: Wed, 3 Jul 2024 11:50:32 +0300 Subject: [PATCH] Snapshot updates --- .../__snapshots__/Stake.spec.js.snap | 4 +- web-wallet/src/lib/containers/Cards/Card.css | 4 +- .../containers/Cards/IconHeadingCard.svelte | 4 +- .../containers/Cards/ToggleableCard.svelte | 4 +- .../IconHeaderToggleCard.spec.js.snap | 124 ------------------ .../IconHeadingCard.spec.js.snap | 8 +- .../__snapshots__/ToggleableCard.spec.js.snap | 12 +- .../__tests__/__snapshots__/Card.spec.js.snap | 48 ------- .../__tests__/__snapshots__/page.spec.js.snap | 4 +- .../__tests__/__snapshots__/page.spec.js.snap | 8 +- .../__tests__/__snapshots__/page.spec.js.snap | 44 +++---- .../__tests__/__snapshots__/page.spec.js.snap | 12 +- 12 files changed, 52 insertions(+), 224 deletions(-) delete mode 100644 web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeaderToggleCard.spec.js.snap diff --git a/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap b/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap index 0606a1378..7183f3e83 100644 --- a/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap +++ b/web-wallet/src/lib/components/__tests__/__snapshots__/Stake.spec.js.snap @@ -272,11 +272,11 @@ exports[`Stake > should render the Stake notice 1`] = ` class="dusk-card dusk-card--gap-default dusk-card--on-surface" >
-
-
+
+
{#if iconPath} {/if} diff --git a/web-wallet/src/lib/containers/Cards/ToggleableCard.svelte b/web-wallet/src/lib/containers/Cards/ToggleableCard.svelte index 1edc149b6..ae2a44f1c 100644 --- a/web-wallet/src/lib/containers/Cards/ToggleableCard.svelte +++ b/web-wallet/src/lib/containers/Cards/ToggleableCard.svelte @@ -20,8 +20,8 @@ -
-
+
+
{#if iconPath} {/if} diff --git a/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeaderToggleCard.spec.js.snap b/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeaderToggleCard.spec.js.snap deleted file mode 100644 index 542a8b890..000000000 --- a/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeaderToggleCard.spec.js.snap +++ /dev/null @@ -1,124 +0,0 @@ -// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html - -exports[`IconHeaderToggleCard > renders the IconHeaderToggleCard component with a heading 1`] = ` -
-
-
-
- -

- My Card -

-
- -
- - - -
- - - -
-`; - -exports[`IconHeaderToggleCard > renders the IconHeaderToggleCard component with a heading and an icon 1`] = ` -
-
-
-
- - - - - - -

- My Card -

-
- -
- - - -
- - - -
-`; - -exports[`IconHeaderToggleCard > renders the IconHeaderToggleCard component with a toggle 1`] = ` -
-
-
-
- - - - - - -

- My Card -

-
- -
- -
- - - -
- - - -
-`; diff --git a/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeadingCard.spec.js.snap b/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeadingCard.spec.js.snap index ed434192e..131298337 100644 --- a/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeadingCard.spec.js.snap +++ b/web-wallet/src/lib/containers/__tests__/__snapshots__/IconHeadingCard.spec.js.snap @@ -5,11 +5,11 @@ exports[`IconHeadingCard > renders the IconHeadingCard component with a heading class="dusk-card dusk-card--gap-default" >

renders the IconHeadingCard component with a heading class="dusk-card dusk-card--gap-default" >
renders the ToggleableCard component with a heading 1 class="dusk-card dusk-card--gap-default" >

renders the ToggleableCard component with a heading a class="dusk-card dusk-card--gap-default" >
renders the ToggleableCard component with a toggle 1` class="dusk-card dusk-card--gap-default" >
renders the Card component 1`] = `
`; - -exports[`Card > renders the Card component with a heading 1`] = ` -
-
- -

- My Card -

- -
- -
-`; - -exports[`Card > renders the Card component with an icon when iconPath is provided 1`] = ` -
-
- - - - - -

- My Card -

- -
- -
-`; diff --git a/web-wallet/src/routes/(welcome)/forced-logout/__tests__/__snapshots__/page.spec.js.snap b/web-wallet/src/routes/(welcome)/forced-logout/__tests__/__snapshots__/page.spec.js.snap index e848fc08f..6fad81448 100644 --- a/web-wallet/src/routes/(welcome)/forced-logout/__tests__/__snapshots__/page.spec.js.snap +++ b/web-wallet/src/routes/(welcome)/forced-logout/__tests__/__snapshots__/page.spec.js.snap @@ -8,11 +8,11 @@ exports[`Forced logout page > should render the page alert the user about the fo class="dusk-card dusk-card--gap-default" >
Mnemonic phrase workflow > should render the login page and sho class="dusk-card dusk-card--gap-medium" >
Password workflow > should show the password field and the link class="dusk-card dusk-card--gap-medium" >
correctly renders the Mnemonic Preview page 1`] = ` class="dusk-card dusk-card--gap-default" >
correctly renders the Mnemonic Verification page 1`] = ` class="dusk-card dusk-card--gap-default" >

doesn't let the user proceed if they have entered mismatching class="dusk-card dusk-card--gap-default" >

ensures that the Undo button on the Mnemonic Validate step wor class="dusk-card dusk-card--gap-default" >

ensures the All Done step renders as expected 1`] = ` class="dusk-card dusk-card--gap-medium" >

ensures the Password step renders as expected 1`] = ` class="dusk-card dusk-card--gap-default" >
ensures the Password step renders as expected 2`] = ` class="dusk-card dusk-card--gap-default" >
lets the user proceed if they have entered a matching Mnemonic class="dusk-card dusk-card--gap-default" >

should render the \`Securely store your seed phrase!\` agreeme class="dusk-card dusk-card--gap-medium" >

should render the Existing Wallet notice step of the Create fl class="dusk-card dusk-card--gap-default" >
should render the Terms of Service step of the Create flow if class="dusk-card dusk-card--gap-default" >

should render the Existing Wallet notice step of the Restore class="dusk-card dusk-card--gap-default" >
should render the Mnemonic Authenticate step after accepting class="dusk-card dusk-card--gap-medium" >

should render the Terms of Service step of the Restore flow i class="dusk-card dusk-card--gap-default" >