refactor: navbar styling #8677
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
@@ -397,11 +397,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx:85:24
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L237
Error: Snapshot `CreateWallet > should create a wallet with encryption 1` mismatched
- Expected
+ Received
@@ -397,11 +397,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx:237:24
|
Test:
src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx#L387
Error: Snapshot `CreateWallet > should remove pending wallet if not submitted 1` mismatched
- Expected
+ Received
@@ -397,11 +397,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx:387:24
|
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
@@ -397,11 +397,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx:446:24
|
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
@@ -395,11 +395,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/CreateWallet/CreateWallet.test.tsx:477:24
|
Test:
src/domains/wallet/pages/ImportWallet/ImportWallet.test.tsx#L351
Error: Snapshot `ImportWallet > should render as ledger import 1` mismatched
- Expected
+ Received
@@ -395,11 +395,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/ImportWallet/ImportWallet.test.tsx:351:21
|
Test:
src/domains/wallet/pages/WalletGroupPage/WalletGroupPage.test.tsx#L142
Error: Snapshot `WalletGroupPage > should render empty list if no wallets 1` mismatched
- Expected
+ Received
@@ -393,11 +393,11 @@
</div>
<div
class="absolute right-0 top-0 flex items-center justify-center rounded-full p-1 transition-all duration-100 ease-linear"
>
<div
- class="h-1.5 w-1.5 rounded-full bg-theme-success-700"
+ class="h-1.5 w-1.5 rounded-full bg-theme-success-600 dark:bg-theme-success-500"
/>
</div>
</div>
</button>
</div>
❯ src/domains/wallet/pages/WalletGroupPage/WalletGroupPage.test.tsx:142:24
|
Test
Final attempt failed. Child_process exited with error code 1
|
Loading