Skip to content

Add unit tests for the wallet connection popover rendering correct content for connected and disconnected states #640

Description

@Chucks1093

Summary

The wallet connection popover renders different content depending on whether a wallet is connected. Unit tests should confirm the correct elements are present in each state and that the component does not render popover content when no wallet is connected.

Scope

  • Render with no wallet connected: assert the connect button is visible and the address display is absent
  • Render with a connected wallet: assert the truncated address, copy button, and disconnect button are all present
  • Render with a connected wallet: assert the connect button is absent
  • Assert the full wallet address is not rendered anywhere in the connected state

Acceptance Criteria

  • Connect button visible when no wallet connected
  • Address display absent when no wallet connected
  • Truncated address, copy button, and disconnect button all present when connected
  • Connect button absent when wallet is connected
  • Full address not rendered in the DOM

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