feat: implement network switch #8716
test.yml
on: pull_request
Matrix: application-components
Matrix: application-hooks
Matrix: application
Matrix: domains-contact
Matrix: domains-error
Matrix: domains-exchange
Matrix: domains-message
Matrix: domains-network
Matrix: domains-profile
Matrix: domains-vote
Matrix: domains-wallet
Matrix: router
Matrix: utils
Annotations
23 errors and 1 warning
src/domains/network/components/SelectNetwork/SelectNetwork.test.tsx > SelectNetwork > should render as dropdown:
src/domains/network/components/SelectNetwork/SelectNetwork.test.tsx#L26
TestingLibraryElementError: Unable to find an element by: [data-testid="SelectDropdown"]
Ignored nodes: comments, script, style
<body>
<div>
<div
data-testid="SelectNetwork"
/>
</div>
</body>
❯ Object.getElementError node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/domains/network/components/SelectNetwork/SelectNetwork.test.tsx:26:17
|
src/domains/network/components/SelectNetwork/SelectNetwork.test.tsx > SelectNetwork > should render as network options:
src/domains/network/components/NetworkOptions/NetworkOptions.tsx#L26
TypeError: Cannot read properties of undefined (reading 'id')
❯ map src/domains/network/components/NetworkOptions/NetworkOptions.tsx:26:4
❯ NetworkOptions src/domains/network/components/NetworkOptions/NetworkOptions.tsx:27:5
❯ renderWithHooks node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:20103:13
❯ beginWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:21626:16
❯ beginWork$1 node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:27465:14
❯ performUnitOfWork node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26599:12
❯ workLoopSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26505:5
❯ renderRootSync node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.development.js:26473:7
|
domains-network (20.12.2)
Final attempt failed. Child_process exited with error code 1
|
Unhandled error:
src/utils/network-utils.ts#L100
TypeError: Cannot read properties of undefined (reading 'id')
❯ isCustomNetwork src/utils/network-utils.ts:100:21
❯ src/utils/network-utils.ts:142:7
❯ profileAllEnabledNetworks src/utils/network-utils.ts:141:30
❯ Module.profileAllEnabledNetworkIds src/utils/network-utils.ts:150:2
❯ Module.getErroredNetworks src/utils/profile-utils.ts:42:29
❯ src/app/hooks/use-profile-synchronizer.ts:414:33
❯ syncProfile src/app/hooks/use-profile-synchronizer.ts:488:10
❯ runNextTicks node:internal/process/task_queues:60:5
❯ listOnTimeout node:internal/timers:540:9
This error originated in "src/app/App.blocks.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 redirect to login page if profile changes". 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.
|
application (20.12.2)
Final attempt failed. Child_process exited with error code 1
|
application-components (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-app-components' exists
|
application-components (20.12.2)
The operation was canceled.
|
domains-exchange (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-domains-exchange' exists
|
domains-exchange (20.12.2)
The operation was canceled.
|
domains-contact (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-domains-contact' exists
|
src/domains/contact/components/ContactForm/ContactForm.test.tsx > ContactForm > should render responsive sm:
src/domains/contact/components/ContactForm/ContactForm.test.tsx#L65
Error: Snapshot `ContactForm > should render responsive sm 1` mismatched
- Expected
+ Received
@@ -69,32 +69,32 @@
class="w-full"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
- aria-owns="downshift-4-menu"
+ aria-owns="downshift-3-menu"
role="combobox"
>
<div>
<label
- for="downshift-4-input"
+ for="downshift-3-input"
- id="downshift-4-label"
+ id="downshift-3-label"
/>
<div
class="flex w-full appearance-none items-center space-x-2 rounded px-4 text-theme-text transition-colors duration-200 border border-theme-secondary-400 bg-theme-background focus-within:border-theme-primary-600 focus-within:ring-theme-primary-600 dark:border-theme-secondary-700 focus-within:ring-1 h-12 overflow-hidden sm:h-14"
>
<div
class="relative flex h-full flex-1"
>
<input
aria-autocomplete="list"
- aria-controls="downshift-4-menu"
+ aria-controls="downshift-3-menu"
- aria-labelledby="downshift-4-label"
+ aria-labelledby="downshift-3-label"
autocomplete="off"
class="!bg-transparent !p-0 focus:shadow-none focus:outline-none focus:!ring-0 focus:!ring-transparent [&.shadow-none]:shadow-none no-ligatures w-full border-none !text-sm placeholder:text-theme-secondary-400 dark:placeholder:text-theme-secondary-700 sm:!text-base cursor-default"
data-testid="SelectDropdown__input"
- id="downshift-4-input"
+ id="downshift-3-input"
name="network"
placeholder="Enter a cryptoasset name"
type="text"
value=""
/>
@@ -147,12 +147,12 @@
</div>
</div>
</div>
</div>
<div
- aria-labelledby="downshift-4-label"
+ aria-labelledby="downshift-3-label"
- id="downshift-4-menu"
+ id="downshift-3-menu"
role="listbox"
/>
</div>
</div>
</div>
❯ src/domains/contact/components/ContactForm/ContactForm.test.tsx:65:24
|
domains-contact (20.12.2)
The operation was canceled.
|
domains-vote (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-domains-vote' exists
|
domains-vote (20.12.2)
The operation was canceled.
|
application-hooks (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-app-hooks' exists
|
application-hooks (20.12.2)
The operation was canceled.
|
domains-wallet (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-domains-wallet' exists
|
domains-wallet (20.12.2)
The operation was canceled.
|
domains-message (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-domains-message' exists
|
src/domains/message/pages/SignMessage/SignMessage.test.tsx > SignMessage > Sign with deeplink > should select address from deeplinking:
src/domains/message/pages/SignMessage/SignMessage.test.tsx#L151
TestingLibraryElementError: Unable to find an element with the text: Provide a message below and sign with your mnemonic passphrase.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
style="overflow-y: overlay;"
>
<div>
<div
class="relative flex flex-col sm:min-h-screen pb-32 sm:pb-0"
style="min-height: -webkit-fill-available;"
>
<div
class="fixed bottom-0 left-0 z-10 flex w-full flex-col justify-center bg-white dark:bg-black sm:hidden"
data-testid="NavigationBarMobile"
>
<div
class="border-t border-theme-secondary-300 dark:border-theme-secondary-900"
data-testid="NavigationBar__buttons-separator"
/>
<div
class="flex h-14 items-center justify-center space-x-4"
>
<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 text-theme-secondary-700 dark:text-theme-secondary-600"
data-testid="NavigationBar__buttons__mobile--receive"
type="button"
>
<div
class="flex items-center space-x-2"
>
<div>
<div
style="height: 20px; width: 20px;"
>
<svg
id="received"
style="height: 100%; width: 100%;"
viewBox="0 0 20 20"
x="0"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
y="0"
>
<g
fill="none"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
>
<path
d="M8 5V1M12 1v10h3.404c.248 0 .39.281.244.481l-5.41 7.398a.296.296 0 0 1-.476 0l-5.41-7.398A.303.303 0 0 1 4.596 11H8V9"
/>
</g>
</svg>
</div>
</div>
</div>
</button>
<div
class="h-5 relative mx-2 inline-block border-l border-t-0 border-solid align-middle border-theme-secondary-300 dark:border-theme-secondary-800"
/>
<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 text-theme-secondary-700 dark:text-theme-secondary-600"
data-testid="NavigationBar__buttons__mobile--home"
type="button"
>
<div
class="flex items-center space-x-2"
>
<div>
<div
style="height: 20px; width: 20px;"
>
<svg
fill="none"
style="height: 100%; width: 100%;"
viewBox="0 0 21 20"
x="0"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
y="0"
>
<path
clip-rule="evenodd"
d="M5.35 8.153a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2zm0 10.797a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2zM16.147 8.153a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2zm0 10.797a3.6 3.6 0 1 0 0-7.2 3.6 3.6 0 0 0 0 7.2z"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
|
domains-message (20.12.2)
The operation was canceled.
|
domains-profile (20.12.2)
Canceling since a higher priority waiting request for 'feat/network-switch-test-domains-profile' exists
|
domains-profile (20.12.2)
The operation was canceled.
|
domains-contact (20.12.2)
Attempt 1 failed. Reason: Child_process exited with error code 1
|