Skip to content

test: NetworkSwitcher localStorage and Alt+N, ButtonGroup styling and href disabled, SorobanInvokeButton loading label and result height #346

Description

@k-deejah

Problem

1. Tests for NetworkSwitcher localStorage persistence, Alt+N shortcut, and mismatch badge are missing — after issue b40, no tests verify the saved network is restored, Alt+N opens the dropdown, or the mismatch badge renders.

2. Tests for ButtonGroup connected styling, leftIcon/rightIcon placement, and href disabled are missing — after issue b34, no tests verify sibling buttons in ButtonGroup have modified border radius, icons render in the correct position, or href button does not fire on disabled.

3. Tests for SorobanInvokeButton loading method label, tooltip prop, and max result height are missing — after issue b35, no tests verify loading shows "Invoking {method}…", tooltip renders as title, or result container has max-h overflow.

Solution

Write Vitest tests for all three groups.

Acceptance Criteria

  • NetworkSwitcher persistence, shortcut, and mismatch badge tests pass
  • ButtonGroup styling, icon, and disabled href tests pass
  • SorobanInvokeButton loading label, tooltip, and result height tests pass
  • All tests pass with npm test

Note for Contributors: Write a clear PR description. Include the full npm test output.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programhelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions