Skip to content

Add unit tests for the connect wallet button showing the correct state during connection, connected, and error states #773

Description

@Chucks1093

Summary

The connect wallet button cycles through three states: idle, connecting, and connected. Unit tests should confirm the correct label, icon, and disabled state for each and that the error state shows a retry option.

Scope

  • Test idle state renders 'Connect Wallet' label and is enabled
  • Test connecting state renders 'Connecting…' with a spinner and is disabled
  • Test connected state renders the truncated wallet address
  • Test error state renders 'Failed — Try Again' with a retry button
  • Assert retry button calls the connect handler again

Acceptance Criteria

  • Idle state renders 'Connect Wallet' and is enabled
  • Connecting state shows spinner and is disabled
  • Connected state shows truncated wallet address
  • Error state shows retry button
  • Retry button calls the connect handler

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions