Skip to content

Feat: WalletIsland #6544

Feat: WalletIsland

Feat: WalletIsland #6544

Triggered via pull request December 3, 2024 22:07
Status Failure
Total duration 2m 56s
Artifacts

test.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 1 warning
src/wallet/components/Wallet.test.tsx > Wallet Component > should render the Wallet component with ConnectWallet: src/wallet/components/Wallet.test.tsx#L47
AssertionError: expected <div data-testid="wallet-dropdown"></div> to be null - Expected: null + Received: <div data-testid="wallet-dropdown" > Wallet Dropdown </div> ❯ src/wallet/components/Wallet.test.tsx:47:53
src/wallet/components/Wallet.test.tsx > Wallet Component > should not trigger click handler when wallet is closed: src/wallet/components/Wallet.test.tsx#L99
AssertionError: expected <div data-testid="wallet-dropdown"></div> to be null - Expected: null + Received: <div data-testid="wallet-dropdown" > Wallet Dropdown </div> ❯ src/wallet/components/Wallet.test.tsx:99:53
src/wallet/components/WalletDropdownDisconnect.test.tsx > WalletDropdownDisconnect > renders correctly with default props: src/wallet/components/WalletDropdownDisconnect.test.tsx#L26
TestingLibraryElementError: Found multiple elements with the text: Disconnect Here are the matching elements: Ignored nodes: comments, script, style <title> Disconnect </title> Ignored nodes: comments, script, style <span class="ock-font-family font-normal text-base pl-6" > Disconnect </span> (If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)). Ignored nodes: comments, script, style <body> <div> <button class="cursor-pointer ock-bg-default active:bg-[var(--ock-bg-default-active)] hover:bg-[var(--ock-bg-default-hover)] ock-text-foreground relative flex w-full items-center px-4 pt-3 pb-4" type="button" > <div class="absolute left-4 flex h-[1.125rem] w-[1.125rem] items-center justify-center" > <svg fill="none" height="28" viewBox="0 0 28 28" width="28" xmlns="http://www.w3.org/2000/svg" > <title> Disconnect </title> <rect class="ock-bg-default" height="28" rx="8" width="28" /> <path class="ock-icon-color-foreground" d="M16.3001 8L16.3001 9.5L9.51537 9.5L9.51537 18.5L16.3001 18.5L16.3001 20L8 20L8 8L16.3001 8Z" /> <path class="ock-icon-color-foreground" d="M17.2455 16.8926L20.0002 14.0193L17.2595 11L16.1323 12.0025L17.2717 13.2578L12.1499 13.2578L12.1499 14.7578L17.203 14.7578L16.1463 15.86L17.2455 16.8926Z" /> </svg> </div> <span class="ock-font-family font-normal text-base pl-6" > Disconnect </span> </button> </div> </body> ❯ Object.getElementError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19 ❯ getElementError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:20:35 ❯ getMultipleElementsFoundError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:23:10 ❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:55:13 ❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19 ❯ src/wallet/components/WalletDropdownDisconnect.test.tsx:26:19
src/wallet/components/WalletProvider.test.tsx > useWalletContext > should return default context: src/wallet/components/WalletProvider.tsx#L19
WagmiProviderNotFoundError: `useConfig` must be used within `WagmiProvider`. Docs: https://wagmi.sh/react/api/WagmiProvider.html Version: wagmi@2.13.3 ❯ useConfig node_modules/wagmi/src/hooks/useConfig.ts:20:22 ❯ Module.useAccount node_modules/wagmi/src/hooks/useAccount.ts:25:18 ❯ WalletProvider src/wallet/components/WalletProvider.tsx:19:23 ❯ renderWithHooks node_modules/react-dom/cjs/react-dom.development.js:15486:18 ❯ mountIndeterminateComponent node_modules/react-dom/cjs/react-dom.development.js:20103:13 ❯ beginWork node_modules/react-dom/cjs/react-dom.development.js:21626:16 ❯ beginWork$1 node_modules/react-dom/cjs/react-dom.development.js:27465:14 ❯ performUnitOfWork node_modules/react-dom/cjs/react-dom.development.js:26599:12 ❯ workLoopSync node_modules/react-dom/cjs/react-dom.development.js:26505:5 ❯ renderRootSync node_modules/react-dom/cjs/react-dom.development.js:26473:7 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { details: undefined, docsPath: '/api/WagmiProvider', metaMessages: undefined, shortMessage: '`useConfig` must be used within `WagmiProvider`.', docsBaseUrl: 'https://wagmi.sh/react', version: 'wagmi@2.13.3', walk: 'Function<walk>' }
build (18.x)
Process completed with exit code 1.
build (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636