Skip to content

Add unit tests for the invoice card component rendering the correct funding progress percentage #25

Description

@Chucks1093

Summary

Each invoice card on the marketplace shows a funding progress bar. Unit tests should confirm the percentage is calculated and displayed correctly for under-funded, fully funded, and overfunded edge cases.

Scope

  • Test 5000 raised of 10000 target renders 50% progress bar
  • Test 10000 raised of 10000 target renders 100% progress bar (green)
  • Test 0 raised renders 0% progress bar
  • Test raised exceeding target is capped at 100% (no overflow)
  • Test a null raised value renders 0% without crashing

Acceptance Criteria

  • 50% progress bar for 5000/10000
  • 100% bar rendered green for fully funded invoice
  • 0% bar for zero raised
  • Bar capped at 100% when raised exceeds target
  • Null raised value renders 0% without crashing

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