Skip to content

Add unit tests for the transaction type badge rendering the correct label and colour for buy and sell transactions #765

Description

@Chucks1093

Summary

The transaction history list shows a coloured badge for each transaction type. Unit tests should confirm the correct label and colour class are applied for buy and sell and that an unknown type falls back gracefully.

Scope

  • Test a buy transaction renders a green badge with label 'Buy'
  • Test a sell transaction renders a red badge with label 'Sell'
  • Test an unknown type renders a grey badge with label 'Unknown'
  • Assert no error thrown for any of the three cases

Acceptance Criteria

  • Buy renders green badge with 'Buy' label
  • Sell renders red badge with 'Sell' label
  • Unknown type renders grey 'Unknown' badge without throwing
  • No error thrown for any case

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