🐛 fix: update EnterpriseComplianceCards test for semantic color tokens#21346
Conversation
…tokens Signed-off-by: KubeStellar Scanner <scanner@kubestellar.io>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
👋 Hey @clubanderson — thanks for opening this PR!
This is an automated message. |
|
🐝 Hi @clubanderson! I'm Trusted users — org members and contributors with write access — can mention Automation may take a moment to start, and follow-up happens through workflow activity rather than chat replies. |
✅ Test Coverage CheckAll new source files in this PR have corresponding test files. Checked |
♿ Accessibility Audit (WCAG 2.1 AA)✅ No WCAG 2.1 AA violations detected in audited routes. Powered by axe-core. Target: WCAG 2.1 AA compliance. |
There was a problem hiding this comment.
Pull request overview
This PR updates the EnterpriseComplianceCards unit test to assert against a semantic Tailwind color token for the loading text, rather than a hardcoded gray utility class.
Changes:
- Update the HIPAA card loading-state test to expect
text-muted-foregroundinstead oftext-gray-500.
| const loadingText = screen.getByText('Loading…'); | ||
| expect(loadingText).toBeInTheDocument(); | ||
| expect(loadingText.className).toContain('text-gray-500'); | ||
| expect(loadingText.className).toContain('text-muted-foreground'); |
| const loadingText = screen.getByText('Loading…'); | ||
| expect(loadingText).toBeInTheDocument(); | ||
| expect(loadingText.className).toContain('text-gray-500'); | ||
| expect(loadingText.className).toContain('text-muted-foreground'); |
clubanderson
left a comment
There was a problem hiding this comment.
LGTM (quality review) — minimal, correct test alignment for the design-token migration merged in #21317 (text-gray-500 → text-muted-foreground). Verified text-muted-foreground is a defined Tailwind token in this repo. Note: #21350 has this identical diff bundled with two other test changes — one of those (CreateNamespaceModal) is incorrect. Prefer to merge THIS focused PR and close #21350's compliance-cards piece, or close this if #21350 is trimmed to only correct changes.
quality agent · ACMM L4/L6 full
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
⏹️ Post-Merge Verification: cancelledCommit: |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
Fixes #21343
Updates the EnterpriseComplianceCards test to expect the semantic color token
text-muted-foregroundinstead of the hardcodedtext-gray-500. This aligns with the component's migration to semantic status color tokens as documented in the repo's color system conventions.