Skip to content

test: TopBar auto-dismiss countdown bar, TransactionPanel asset memo type selector, ContractEventFeed value Show-more toggle #214

Description

@k-deejah

Problem

Three test gaps leave TransactionHistory row features, ContractEventFeed filter state, and AccountScreen Friendbot link untested.

1. TxRow feePaid display and operationCount badge are untested

After issues #51 and #84, TxRow shows feePaid and a multi-op badge. No test verifies: feePaid value renders in the row, operationCount > 1 shows the badge, operationCount === 1 hides it.

2. ContractEventFeed "last updated" timestamp updates every second

After issue #59, the "last updated" timestamp renders in the header. No test verifies: the timestamp renders after a poll completes, advancing fake timers by 60 seconds changes the relative time string from "just now" to "1m ago".

3. AccountScreen Friendbot link renders on testnet only

After issue #81, a Friendbot link appears on testnet with zero balances. No test verifies: the link appears on testnet with balances: [], does not appear on mainnet, and does not appear on testnet with non-empty balances.

Solution

Write Vitest tests with vi.useFakeTimers() for the timestamp test and mock context for the network-conditional tests.

Acceptance Criteria

  • TxRow feePaid and multi-op badge tests pass
  • ContractEventFeed "last updated" relative time test passes
  • AccountScreen Friendbot link conditional 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
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