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
Note for Contributors: Write a clear PR description. Include the full npm test output.
Problem
Three test gaps leave
TransactionHistoryrow features,ContractEventFeedfilter state, andAccountScreenFriendbot link untested.1.
TxRowfeePaiddisplay andoperationCountbadge are untestedAfter issues #51 and #84,
TxRowshowsfeePaidand a multi-op badge. No test verifies:feePaidvalue renders in the row,operationCount > 1shows the badge,operationCount === 1hides it.2.
ContractEventFeed"last updated" timestamp updates every secondAfter 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.
AccountScreenFriendbot link renders on testnet onlyAfter 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
TxRowfeePaidand multi-op badge tests passContractEventFeed"last updated" relative time test passesAccountScreenFriendbot link conditional tests passnpm test