-
Notifications
You must be signed in to change notification settings - Fork 1
SW-1158: add Storybook testing #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add @storybook/experimental-addon-test with Vitest integration - Configure tests to fail on all console warnings and errors - Fix styled-components transient props to prevent React DOM warnings - Add GitHub workflow for Storybook tests in CI - Add GitHub workflow for Storybook PR previews with cleanup Components updated with transient props (): - Button, Checkbox, CodeEditor, Dropdown, ErrorAlert, Input - MenuItem, Modal, PopConfirm, Tab, TableHeaderCell, Textarea - Tooltip, ButtonControlGroup, Sidebar, Table Fixes: SW-1158
📚 Storybook PreviewYour Storybook preview is ready! This preview will be available for 14 days. |
- Add sync-storybook-zephyr.ts script to create Zephyr test cases from stories - Add report-zephyr-results.ts script to report test results to Zephyr - Add zephyr-sync-storybook.yml workflow for syncing stories to Zephyr - Add zephyr-report-results.yml workflow for reporting results after tests - Update storybook-tests.yml with test filtering and Zephyr reporting options - Remove duplicate run-storybook-tests.yml workflow (consolidated) - Fix vitest.workspace.ts TypeScript error (reporters not in project config) - Clean up unused interfaces in report-zephyr-results.ts Security fixes: - Fix command injection vulnerability in test filtering (use env var) - Pin all GitHub Actions to specific commit SHAs - Add explicit permissions blocks to workflows - Prevent workflows from running on forked PRs
🤖 Augment PR SummarySummary: Adds Storybook-driven component testing using the Storybook Vitest addon, with CI automation and Zephyr Scale integration. Changes:
Technical Notes: Storybook tests run in Chromium (Playwright) and emit JUnit XML for artifact upload and optional Zephyr reporting. 🤖 Was this summary useful? React with 👍 or 👎 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Pin all GitHub Actions to commit hashes for security - Add corepack enable before yarn install - Add fork guards to build-and-deploy and cleanup jobs - Fix markdown indentation in PR comment body - Refactor report-zephyr-results.ts: replace regex with fast-xml-parser - Refactor sync-storybook-zephyr.ts: replace regex with ts-morph AST parsing - Add comprehensive unit tests for Zephyr scripts (23 new tests) - Move fast-xml-parser and ts-morph to devDependencies
Summary
Adds Storybook Vitest addon for E2E testing of React components with strict console warning/error detection.
Changes
Testing Infrastructure
@storybook/experimental-addon-testwith Vitest integrationstorybook-tests.yml)storybook-preview.yml)Component Fixes
Fixed styled-components transient props (
$prefix) to prevent React DOM warnings in 16 components:Story Fixes
Textarea > WithValuestory to usedefaultValueinstead ofvalueTest Results
Requirements for Storybook Preview
gh-pages)Fixes: SW-1158
Pull Request opened by Augment Code with guidance from the PR author