Skip to content

Add integration test for trade panel showing correct price preview before transaction is submitted #596

Description

@Chucks1093

Summary

The trade panel should display the expected price for the quantity the user has entered before they submit the transaction. An integration test should enter a quantity and assert the price preview updates to match the bonding curve price for that quantity.

Scope

  • Render the trade panel for a creator with a known current price
  • Enter quantity 1 into the buy input
  • Assert the price preview shows the correct price for buying 1 key at the current supply
  • Change the quantity to 2 and assert the price preview updates accordingly

Acceptance Criteria

  • Price preview visible in the trade panel
  • Preview correct for quantity 1
  • Preview updates when quantity changes to 2
  • Preview not shown when quantity input is empty or zero

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

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