Skip to main content

badge selectors

Exported const BADGE_SELECTORS (as const) — maps logical regions of Badge.tsx / BadgeWrapper to data-testid strings for E2E.

Keytest idDOM
CONTAINERbadge__containerWraps children + badge chip
CONTENTbadge__contentClickable badge overlay

Import from @lib/test-selectors/components/badge (path alias) in tests; do not hard-code strings in specs.


Sources: src/lib/test-selectors/components/badge.ts, src/app/components/badge/Badge.tsx