Skip to content

Add unit tests for the sell quantity input rejecting values exceeding the wallet's current holding #657

Description

@Chucks1093

Summary

The sell panel quantity input should reject any value greater than the user's current holding for that creator. Unit tests should confirm the validation error appears when the entered quantity exceeds the holding and clears when the quantity is brought back within range.

Scope

  • Render the sell input with a mock holding of 3 keys
  • Enter quantity 4 and assert a validation error is shown
  • Change quantity to 3 and assert the validation error clears
  • Enter quantity 0 and assert a separate zero-quantity error is shown
  • Enter quantity 1 and assert no errors are present

Acceptance Criteria

  • Quantity above holding shows an exceeds-balance validation error
  • Validation error clears when quantity is within range
  • Zero quantity shows a separate error distinct from the exceeds-balance error
  • Quantity equal to the holding is accepted without error

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