Skip to content

Add unit tests for the leaderboard rank badge rendering the correct medal icon for ranks 1, 2, and 3 #772

Description

@Chucks1093

Summary

The leaderboard shows gold, silver, and bronze medal icons for the top three creators. Unit tests should confirm the correct icon is rendered for each of the top three ranks and that rank 4 and above show a plain number.

Scope

  • Test rank 1 renders a gold medal icon
  • Test rank 2 renders a silver medal icon
  • Test rank 3 renders a bronze medal icon
  • Test rank 4 renders the number '4' with no medal icon
  • Assert no error thrown for any rank value

Acceptance Criteria

  • Rank 1 shows gold medal icon
  • Rank 2 shows silver medal icon
  • Rank 3 shows bronze medal icon
  • Rank 4+ shows plain number
  • No error thrown for any rank

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