Skip to content

test: SorobanPanel localStorage history, Input multiline textarea element, BalanceList lastCount skeleton matching #205

Description

@k-deejah

Problem

Three test gaps leave SorobanPanel history features, Input multiline and password toggle, and BalanceList sort untested after their fix PRs.

1. SorobanPanel contract ID history and method suggestions are untested

After issue #88, no test verifies: a previously used contract ID is stored in localStorage, the <datalist> renders with the stored value, and clearing localStorage removes the suggestion.

2. Input multiline renders <textarea> and password toggle shows/hides value

After issue #78, no test verifies: <Input multiline> renders a <textarea> element, toggling the eye button changes type from password to text, and the label/error/hint still work in both modes.

3. BalanceList lastCount skeleton row matching is untested

After issue #57, the skeleton row count matches the last known balance count on refresh. No test verifies: initial load shows 3 skeletons, after loading 7 balances a refresh shows 7 skeletons instead of 3.

Solution

Write Vitest tests for all three with vi.stubGlobal("localStorage", ...) where needed.

Acceptance Criteria

  • SorobanPanel history localStorage tests pass
  • Input multiline and password toggle tests pass
  • BalanceList lastCount skeleton row count test passes
  • All tests pass with npm test

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programhelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions