feat: implement network switch #8650
Annotations
10 errors
Test:
src/domains/wallet/pages/ImportWallet/ImportWallet.tsx#L3027
Error: React act warning detected:
Warning: An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s ImportWallet
at ImportWallet (/home/runner/work/arkvault/arkvault/src/domains/wallet/pages/ImportWallet/ImportWallet.tsx:3027:67)
at Route (/home/runner/work/arkvault/arkvault/node_modules/.pnpm/[email protected][email protected]/node_modules/react-router/cjs/react-router.js:664:29)
at ProfileSynchronizerWrapper (/home/runner/work/arkvault/arkvault/src/utils/testing-library.tsx:155:41)
at Router (/home/runner/work/arkvault/arkvault/node_modules/.pnpm/[email protected][email protected]/node_modules/react-router/cjs/react-router.js:283:30)
at NavigationProvider (/home/runner/work/arkvault/arkvault/src/app/contexts/Navigation/Navigation.tsx:6:31)
at ConfigurationProvider (/home/runner/work/arkvault/arkvault/src/app/contexts/Configuration/Configuration.tsx:19:34)
at LedgerProvider (/home/runner/work/arkvault/arkvault/src/app/contexts/Ledger/Ledger.tsx:8:27)
at EnvironmentProvider (/home/runner/work/arkvault/arkvault/src/app/contexts/Environment/Environment.tsx:9:32)
at I18nextProvider (/home/runner/work/arkvault/arkvault/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/I18nextProvider.js:7:5)
at WithProviders (/home/runner/work/arkvault/arkvault/src/utils/testing-library.tsx:74:26)
at RouterWrapper (/home/runner/work/arkvault/arkvault/src/utils/testing-library.tsx:164:28)
❯ ImportWallet src/domains/wallet/pages/ImportWallet/ImportWallet.tsx:3027:67
❯ Route node_modules/.pnpm/[email protected][email protected]/node_modules/react-router/cjs/react-router.js:664:29
❯ ProfileSynchronizerWrapper src/utils/testing-library.tsx:155:41
❯ Router node_modules/.pnpm/[email protected][email protected]/node_modules/react-router/cjs/react-router.js:283:30
❯ NavigationProvider src/app/contexts/Navigation/Navigation.tsx:6:31
❯ ConfigurationProvider src/app/contexts/Configuration/Configuration.tsx:19:34
❯ LedgerProvider src/app/contexts/Ledger/Ledger.tsx:8:27
❯ EnvironmentProvider src/app/contexts/Environment/Environment.tsx:9:32
❯ I18nextProvider node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/I18nextProvider.js:7:5
❯ WithProviders src/utils/testing-library.tsx:74:26
❯ RouterWrapper src/utils/testing-library.tsx:164:28
❯ Console.<anonymous> src/utils/test-plugins.ts:9:11
❯ Console.mockCall node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/spy/dist/index.js:61:17
❯ Console.error node_modules/.pnpm/[email protected]/node_modules/tinyspy/dist/index.js:45:80
❯ printWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:86:30
❯ error node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:60:7
❯ warnIfUpdatesNotWrappedWithActDEV node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27628:9
❯ scheduleUpdateOnFiber node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:25547:5
❯ dispatchSetState node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:16708:7
❯ node_modules/.pnpm/[email protected][email protected]/node_modules/react-hook-form/src/useForm.ts:168:9
❯ node_modules/.pnpm/[email protected][email protected]/node_modules/react-hook-form/src/useForm.ts:1031:59
This error originated in "src/domains/wallet/pages/ImportWallet/ImportWallet.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've ca
|
Test:
src/app/contexts/Ledger/Ledger.tsx#L8
Error: React act warning detected:
Warning: An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act%s LedgerProvider
at LedgerProvider (/home/runner/work/arkvault/arkvault/src/app/contexts/Ledger/Ledger.tsx:8:27)
at EnvironmentProvider (/home/runner/work/arkvault/arkvault/src/app/contexts/Environment/Environment.tsx:9:32)
at I18nextProvider (/home/runner/work/arkvault/arkvault/node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/I18nextProvider.js:7:5)
at WithProviders (/home/runner/work/arkvault/arkvault/src/utils/testing-library.tsx:74:26)
at RouterWrapper (/home/runner/work/arkvault/arkvault/src/utils/testing-library.tsx:164:28)
❯ LedgerProvider src/app/contexts/Ledger/Ledger.tsx:8:27
❯ EnvironmentProvider src/app/contexts/Environment/Environment.tsx:9:32
❯ I18nextProvider node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]/node_modules/react-i18next/dist/es/I18nextProvider.js:7:5
❯ WithProviders src/utils/testing-library.tsx:74:26
❯ RouterWrapper src/utils/testing-library.tsx:164:28
❯ Console.<anonymous> src/utils/test-plugins.ts:9:11
❯ Console.mockCall node_modules/.pnpm/@vitest[email protected]/node_modules/@vitest/spy/dist/index.js:61:17
❯ Console.error node_modules/.pnpm/[email protected]/node_modules/tinyspy/dist/index.js:45:80
❯ printWarning node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:86:30
❯ error node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:60:7
❯ warnIfUpdatesNotWrappedWithActDEV node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27628:9
❯ scheduleUpdateOnFiber node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:25547:5
❯ dispatchReducerAction node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:16633:7
❯ src/app/contexts/Ledger/hooks/connection.ts:131:3
❯ src/app/contexts/Ledger/hooks/connection.ts:41:3
This error originated in "src/domains/wallet/pages/ImportWallet/ImportWallet.test.tsx" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should import by address and name". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L85
Error: Snapshot `CreateWallet > should create a wallet 1` mismatched
- Expected
+ Received
@@ -406,10 +406,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg>
+ </div>
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L237
Error: Snapshot `CreateWallet > should create a wallet with encryption 1` mismatched
- Expected
+ Received
@@ -406,10 +406,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg>
+
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L387
Error: Snapshot `CreateWallet > should remove pending wallet if not submitted 1` mismatched
- Expected
+ Received
@@ -406,10 +406,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg>
+
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L446
Error: Snapshot `CreateWallet > should show an error message if wallet generation failed 1` mismatched
- Expected
+ Received
@@ -406,10 +406,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L477
Error: Snapshot `CreateWallet > should show an error message for duplicate name 1` mismatched
- Expected
+ Received
@@ -404,10 +404,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg>
+
|
Test:
src/domains/wallet/pages/ImportWallet/ImportWallet.test.tsx#L351
Error: Snapshot `ImportWallet > should render as ledger import 1` mismatched
- Expected
+ Received
@@ -404,10 +404,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg>
+
|
Test:
src/domains/wallet/pages/WalletGroupPage/WalletGroupPage.test.tsx#L142
Error: Snapshot `WalletGroupPage > should render empty list if no wallets 1` mismatched
- Expected
+ Received
@@ -402,10 +402,95 @@
</button>
</div>
</div>
</div>
<div
+ class="hidden md:flex"
+ >
+ <div
+ class="h-8 border-r border-theme-secondary-300 dark:border-theme-secondary-800"
+ />
+ <div>
+ <div
+ aria-expanded="false"
+ aria-haspopup="dialog"
+ data-testid="dropdown__toggle"
+ >
+ <button
+ class="p-3 relative items-center inline-flex justify-center font-semibold leading-tight text-center transition-colors-shadow duration-100 ease-linear outline-none rounded focus:outline-none focus:ring-2 focus:ring-theme-primary-400 disabled:cursor-not-allowed border-none w-auto text-theme-secondary-900 hover:bg-theme-primary-100 hover:text-theme-primary-600 dark:text-theme-secondary-600 dark:hover:bg-theme-secondary-800"
+ data-testid="NavigationBar__buttons--network"
+ type="button"
+ >
+ <div
+ class="flex items-center space-x-2"
+ >
+ <span
+ class="rounded-sm border-2 border-theme-primary-300 bg-theme-primary-50 p-[3px] text-theme-primary-600 dark:border-theme-primary-500 dark:bg-theme-dark-900"
+ >
+ <div>
+ <div
+ style="height: 14px; width: 14px;"
+ >
+ <svg
+ fill="none"
+ height="14"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 14 14"
+ width="14"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <g
+ id="Frame 9851"
+ >
+ <path
+ d="M2 2H4.2571L7.27983 9.37784H7.39915L10.4219 2H12.679V12.1818H10.9091V5.18679H10.8146L8.00071 12.152H6.67827L3.86435 5.17188H3.76989V12.1818H2V2Z"
+ fill="currentColor"
+ id="M"
+ />
+ </g>
+ </svg>
+ </div>
+ </div>
+ </span>
+ <span
+ class="text-sm"
+ >
+ Mainnet
+ </span>
+ <div
+ class="transition-transform"
+ role="img"
+ >
+ <div
+ style="height: 10px; width: 10px;"
+ >
+ <svg
+ id="chevron-down-small"
+ style="height: 100%; width: 100%;"
+ viewBox="0 0 10 10"
+ x="0"
+ xml:space="preserve"
+ xmlns="http://www.w3.org/2000/svg"
+ y="0"
+ >
+ <path
+ d="M9 3.1L5.2 6.9c-.1.1-.3.1-.4 0L1 3.1"
+ fill="none"
+ stroke="currentColor"
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ />
+ </svg>
+
|
Test
Final attempt failed. Child_process exited with error code 1
|
Loading