Skip to content

Add CI test pipeline with story rendering coverage#109

Merged
pglevy merged 7 commits into
mainfrom
test-prs
May 6, 2026
Merged

Add CI test pipeline with story rendering coverage#109
pglevy merged 7 commits into
mainfrom
test-prs

Conversation

@pglevy

@pglevy pglevy commented May 6, 2026

Copy link
Copy Markdown
Owner

Closes #105

Changes

Fix failing unit tests in RadioButtonField.test.tsx

  • Updated CSS selector from .border-gray-200 to .border-gray-300 to match actual component classes
  • Updated selected card assertion to check border-blue-500 only — component never applied bg-blue-50

Add test job to CI in .github/workflows/deploy.yml

  • New test job runs before build: installs Playwright/Chromium, generates CSS, then runs pnpm test
  • pnpm test covers both unit tests via jsdom and story rendering via real Chromium using @storybook/addon-vitest — catches runtime errors like sizeMap is not defined that build-only steps miss
  • Build and deploy jobs now depend on test passing
  • Added pull_request trigger so tests run on PRs, not just after merge to main
  • Build/deploy jobs skip on PRs since pages deployment requires main branch permissions

@pglevy pglevy merged commit 417fb76 into main May 6, 2026
3 checks passed
@pglevy pglevy deleted the test-prs branch May 6, 2026 02:10
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.

Figure out test flow for deployment

1 participant