Skip to content

Add integration test for holdings page showing updated balance after a successful sell #574

Description

@Chucks1093

Summary

After a user sells keys the holdings page should reflect the reduced balance. An integration test should simulate a sell transaction confirmation and assert the holdings list updates to show the new quantity.

Scope

  • Render the holdings page with a mocked holding of 3 keys for one creator
  • Simulate a sell of 1 key confirming successfully
  • Assert the displayed holding quantity updates to 2
  • Assert the holding entry is removed entirely when quantity reaches 0

Acceptance Criteria

  • Holding quantity decrements correctly after sell confirmation
  • Holding entry removed when quantity reaches 0
  • Holdings page does not require a manual refresh to reflect the change
  • Test covers both partial sell (quantity > 0 remaining) and full sell (quantity = 0)

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions