Skip to content

[FE-104] condition-badge.tsx, status-badge.tsx, and validation.tsx have no test coverage #1299

Description

@yusuftomilola

Overview

These three small, high-reuse files in frontend/components/assets/ — the condition/status badge renderers and the shared form validation logic — have no tests despite being used across the assets list, detail page, and both modals.

Tasks

  • Add tests asserting each AssetStatus/condition value maps to the expected badge label and color.
  • Add tests for validation.tsx's exported validators covering both valid and invalid inputs.

Acceptance Criteria

  • Badge rendering and shared validation logic both have direct unit tests.

Notes for Contributors

Comment below to be assigned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programfrontendtestingTests, QA, and quality assurance

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions