Skip to content

test: cover wallet connect interactions#148

Closed
go165 wants to merge 1 commit into
Disciplr-Org:mainfrom
go165:go165/test-wallet-connect
Closed

test: cover wallet connect interactions#148
go165 wants to merge 1 commit into
Disciplr-Org:mainfrom
go165:go165/test-wallet-connect

Conversation

@go165

@go165 go165 commented Jun 17, 2026

Copy link
Copy Markdown

Summary

  • add RTL coverage for WalletConnectButton disconnected, connected, and error states
  • cover WalletSelectionModal launch/connect flow plus visible wallet error handling
  • cover WalletDropdown truncation, balance display, copy success/failure, explorer routing, outside-click dismissal, switch-wallet, and disconnect behavior

Verification

  • npm test -- --run src/components/Wallet/__tests__/WalletConnectButton.test.tsx
  • npm test -- --run src/components/Wallet/__tests__/WalletConnectButton.test.tsx src/pages/__tests__/ValidationDetail.test.tsx
  • git diff --check

Wallet coverage from the focused run:

  • WalletConnectButton: 100% statements / 100% branches / 100% funcs / 100% lines
  • WalletDropdown: 100% statements / 100% branches / 100% funcs / 100% lines
  • WalletSelectionModal: 100% statements / 80% branches / 100% funcs / 100% lines

Closes #134

Payout address if reward-eligible: 0x1f0130669ca6fd02e025a984cc038f139df19a2f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RTL tests for WalletConnectButton connect/disconnect and dropdown

2 participants