Summary
The watchlist toggle reads from and writes to localStorage. Unit tests should mock localStorage and assert that toggling a key on and off correctly updates the stored list and that the bookmark icon reflects the correct state on re-render.
Scope
- Test that clicking the bookmark icon on an unbookmarked key adds it to localStorage and shows the filled icon
- Test that clicking the bookmark icon on a bookmarked key removes it from localStorage and shows the outline icon
- Test that the bookmark icon renders as filled on mount when the key is already in localStorage
- Test that the watchlist count in the navbar updates after each toggle
- Test that disconnecting the wallet clears the localStorage watchlist entry
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The watchlist toggle reads from and writes to localStorage. Unit tests should mock localStorage and assert that toggling a key on and off correctly updates the stored list and that the bookmark icon reflects the correct state on re-render.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram