Skip to content

test: cover TrustBadge states and tooltip accessibility#667

Open
felixvippp-ai wants to merge 1 commit into
Commitlabs-Org:masterfrom
felixvippp-ai:codex/trust-badge-tests
Open

test: cover TrustBadge states and tooltip accessibility#667
felixvippp-ai wants to merge 1 commit into
Commitlabs-Org:masterfrom
felixvippp-ai:codex/trust-badge-tests

Conversation

@felixvippp-ai

Copy link
Copy Markdown

Summary

  • add React Testing Library coverage for every TrustBadge trust level
  • cover tooltip enabled/disabled behavior, className merging, and unknown-level fallback
  • add accessible label/description wiring for the badge tooltip plus focused test notes

Closes #639.

Tests

  • npm.cmd test -- --run src/components/tests/TrustBadge.test.tsx

Build note

  • npm.cmd run build currently fails before this change's files are reached because the existing codebase has unrelated compilation errors, including CommitmentDetailsModal.tsx JSX parsing, commitments/[id]/settle route syntax, and duplicate backend symbol definitions.

@vercel

vercel Bot commented Jun 24, 2026

Copy link
Copy Markdown

@felixvippp-ai is attempting to deploy a commit to the 1nonly's projects Team on Vercel.

A member of the Team first needs to authorize it.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add RTL tests for TrustBadge covering all trust levels, tooltip, and accessibility

1 participant