web-wallet: create non-native migration page #2322
Annotations
5 errors
web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js#L300
Error: Snapshot `Create > ensures the Swap To Native Dusk step renders as expected 1` mismatched
- Expected
+ Received
@@ -5,28 +5,25 @@
-
-
<h2
class="h1"
slot="heading"
>
- Swap ERC20
- <br />
-
- to
<mark>
- Native Dusk
+ Password
</mark>
+ <br />
+
+ Setup
</h2>
<div
class="dusk-stepper dusk-stepper--variant--secondary"
- style="--columns: 6; --progress-width: 66.66666666666667%;"
+ style="--columns: 6; --progress-width: 50%;"
>
<span
class="dusk-stepper__step dusk-stepper__step--processed"
>
1
@@ -40,17 +37,17 @@
class="dusk-stepper__step dusk-stepper__step--processed"
>
3
</span>
<span
+ aria-current="step"
class="dusk-stepper__step dusk-stepper__step--processed"
>
4
</span>
<span
- aria-current="step"
- class="dusk-stepper__step dusk-stepper__step--processed"
+ class="dusk-stepper__step"
>
5
</span>
<span
class="dusk-stepper__step"
@@ -59,38 +56,73 @@
</span>
</div>
- <p>
- The ERC20 token swap functionality is currently disabled and will be provided
- after the launch of the Dusk mainnet.
- </p>
+ <div
+ class="dusk-card dusk-card--gap-default"
+ >
+ <header
+ class="dusk-card__header"
+ slot="header"
+ >
+ <div
+ class="dusk-card__header-title"
+ >
+ <svg
+ class="dusk-icon dusk-icon--size--default"
+ role="graphics-symbol"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M21 18H15V15H13.3C12.2 17.4 9.7 19 7 19C3.1 19 0 15.9 0 12S3.1 5 7 5C9.7 5 12.2 6.6 13.3 9H24V15H21V18M17 16H19V13H22V11H11.9L11.7 10.3C11 8.3 9.1 7 7 7C4.2 7 2 9.2 2 12S4.2 17 7 17C9.1 17 11 15.7 11.7 13.7L11.9 13H17V16M7 15C5.3 15 4 13.7 4 12S5.3 9 7 9 10 10.3 10 12 8.7 15 7 15M7 11C6.4 11 6 11.4 6 12S6.4 13 7 13 8 12.6 8 12 7.6 11 7 11Z"
+ />
+ </svg>
+
+
+ <h3
+ class="h4"
+ >
+ Password
+ </h3>
+ </div>
+
+ <div
+ aria-checked="false"
+ aria-disabled="false"
+ class="dusk-switch dusk-switch--on-surface"
+ role="switch"
+ tabindex="0"
+ />
+ </header>
+
+
+
+ </div>
+
- <button
- class="dusk-button dusk-button--type--button dusk-button--variant--primary dusk-button--size--default dusk-icon-button--labeled"
- disabled=""
- type="button"
+ <div
+ class="notice"
>
<svg
- class="dusk-icon dusk-icon--size--default dusk-button__icon"
+ class="dusk-icon dusk-icon--size--large"
role="graphics-symbol"
viewBox="0 0 24 24"
>
<path
- d="M12.335 0.005a12.186 12.186 0 0 0 -2.58 0.204C4.2 1.259 0 6.14 0 11.999 0 17.859 4.203 22.74 9.759 23.79c0.726 0.138 1.476 0.21 2.241 0.21 6.789 0 12.261 -5.64 11.991 -12.49C23.741 5.249 18.599 0.173 12.335 0.005Zm0.207 21.58c-0.204 0.012 -0.336 -0.222 -0.21 -0.384 1.974 -2.541 3.153 -5.733 3.153 -9.202 0 -3.468 -1.176 -6.663 -3.153 -9.202 -0.126 -0.162 0.003 -0.396 0.207 -0.384 5.052 0.282 9.06 4.465 9.06 9.586 0 5.121 -4.005 9.304 -9.057 9.586Z"
+ d="M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16"
/>
</svg>
- <span
- class="dusk-button__text"
- >
- Swap ERC20 to NDUSK
- </span>
-
- </button>
+ <p>
+ Setting a password for your web wallet is optional. Doing so allows you the
+ convenience of opening your wallet file using a password, but it weakens the
+ overall security. Not using a password requires you to input the full
+ mnemonic to open your wallet.
+ </p>
+ </div>
<div
class="dusk-wizard__step-navigation"
>
<button
@@ -137,10 +169,12 @@
/>
</svg>
</b
|
web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js#L326
Error: Snapshot `Create > ensures the All Done step renders as expected 1` mismatched
- Expected
+ Received
@@ -7,27 +7,26 @@
-
-
<h2
class="h1"
slot="heading"
>
- Welcome to
+ Swap ERC20
<br />
-
+
+ to
<mark>
- Dusk
+ Native Dusk
</mark>
</h2>
<div
class="dusk-stepper dusk-stepper--variant--secondary"
- style="--columns: 6; --progress-width: 83.33333333333333%;"
+ style="--columns: 6; --progress-width: 66.66666666666667%;"
>
<span
class="dusk-stepper__step dusk-stepper__step--processed"
>
1
@@ -46,57 +45,79 @@
class="dusk-stepper__step dusk-stepper__step--processed"
>
4
</span>
<span
+ aria-current="step"
class="dusk-stepper__step dusk-stepper__step--processed"
>
5
</span>
<span
- aria-current="step"
- class="dusk-stepper__step dusk-stepper__step--processed"
+ class="dusk-stepper__step"
>
6
</span>
</div>
+
+ <p>
+ The ERC20 token swap functionality is currently disabled and will be provided
+ after the launch of the Dusk mainnet.
+ </p>
- <div
- class="dusk-card dusk-card--gap-medium"
+ <button
+ class="dusk-button dusk-button--type--button dusk-button--variant--primary dusk-button--size--default dusk-icon-button--labeled"
+ disabled=""
+ type="button"
>
- <header
- class="dusk-card__header"
- slot="header"
+ <svg
+ class="dusk-icon dusk-icon--size--default dusk-button__icon"
+ role="graphics-symbol"
+ viewBox="0 0 24 24"
>
- <div
- class="dusk-card__header-title"
- >
-
- <h3
- class="h4"
- >
- You are all set!
- </h3>
- </div>
- </header>
+ <path
+ d="M12.335 0.005a12.186 12.186 0 0 0 -2.58 0.204C4.2 1.259 0 6.14 0 11.999 0 17.859 4.203 22.74 9.759 23.79c0.726 0.138 1.476 0.21 2.241 0.21 6.789 0 12.261 -5.64 11.991 -12.49C23.741 5.249 18.599 0.173 12.335 0.005Zm0.207 21.58c-0.204 0.012 -0.336 -0.222 -0.21 -0.384 1.974 -2.541 3.153 -5.733 3.153 -9.202 0 -3.468 -1.176 -6.663 -3.153 -9.202 -0.126 -0.162 0.003 -0.396 0.207 -0.384 5.052 0.282 9.06 4.465 9.06 9.586 0 5.121 -4.005 9.304 -9.057 9.586Z"
+ />
+ </svg>
+
- <img
- alt="All Set"
- class="all-set__illustration"
- height="182"
- src="/some-base-path/images/onboarding/all_set_illustration.svg"
- width="205"
- />
-
- </div>
-
+ <span
+ class="dusk-button__text"
+ >
+ Swap ERC20 to NDUSK
+ </span>
+
+ </button>
<div
class="dusk-wizard__step-navigation"
>
+ <button
+ class="dusk-button dusk-button--type--button dusk-button--variant--tertiary dusk-button--size--default dusk-icon-button--labeled"
+ type="button"
+ >
+ <svg
+ class="dusk-icon dusk-icon--size--default dusk-button__icon"
+ role="graphics-symbol"
+ viewBox="0 0 24 24"
+ >
+ <path
+ d="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"
+ />
+ </svg>
+
+
+ <span
+ class="dusk-button__text"
+ >
+ Back
+ </span>
+
+ </button>
+
<button
class="dusk-button dusk-button--type--button dusk-button--variant--tertiary dusk-button--size--default dusk-icon-button--labeled"
type="button"
>
@@ -116,8 +137,10 @@
/>
</svg>
</button>
</div>
+
+
</div>
❯ src/routes/(welcome)/setup/create/__tests__/page.spec.js:326:34
|
web-wallet/src/routes/(welcome)/setup/create/__tests__/page.spec.js#L365
Error: Timed out in waitUntil!
❯ src/routes/(welcome)/setup/create/__tests__/page.spec.js:365:14
|
web-wallet/src/routes/(welcome)/setup/restore/__tests__/page.spec.js#L158
Error: Timed out in waitUntil!
❯ src/routes/(welcome)/setup/restore/__tests__/page.spec.js:158:14
|
|
This job failed
Loading