Skip to content

Commit 2bdb1d9

Browse files
test: add chain select icon test (#343)
1 parent 19109a2 commit 2bdb1d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/wagmi/src/wagmi-provider/__test__/switch-chain.test.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ describe('switch chain when connect', () => {
8686
'Ethereum',
8787
);
8888
fireEvent.click(baseElement.querySelector('.ant-web3-connect-button-chain-select')!);
89+
expect(
90+
baseElement.querySelector('.ant-dropdown-menu-item .ant-web3-icon-polygon-circle-colorful'),
91+
).not.toBeNull();
92+
expect(
93+
baseElement.querySelector('.ant-dropdown-menu-item .ant-web3-icon-ethereum-circle-colorful'),
94+
).not.toBeNull();
8995
fireEvent.click(baseElement.querySelectorAll('.ant-dropdown-menu-item')[1]);
9096
await vi.waitFor(() => {
9197
expect(baseElement.querySelector('.ant-web3-connect-button-chain-select')?.textContent).toBe(

0 commit comments

Comments
 (0)