feat(qa): 4-layer automated component testing framework#1
Open
TimofeyZhivenok wants to merge 4 commits intomiozu-com:mainfrom
Open
feat(qa): 4-layer automated component testing framework#1TimofeyZhivenok wants to merge 4 commits intomiozu-com:mainfrom
TimofeyZhivenok wants to merge 4 commits intomiozu-com:mainfrom
Conversation
TimofeyZhivenok
added a commit
to TimofeyZhivenok/QA-System
that referenced
this pull request
Apr 24, 2026
- component-test-runner: localhost:6006 default, VAULT_ROOT removed, STORYBOOK_EMAIL/PASSWORD, JSDoc on testComponent - component-suite-runner: localhost:6006 default, VAULT_ROOT removed, COMPONENTS_JSON_LEGACY removed, qa-reports branch logic (CI mode) - spec-generator: SPECS_DIR fix (qa/qa/specs → qa/specs), JSDoc on normalizeReport + buildSpecFile - layer2-interaction: runLayer2All now propagates selectors to runLayer2 - Agent memories: master-orchestrator, component-tester, results-analyzer — session log + new patterns - CLAUDE.md: Last Session updated — PR #1 opened miozu-com/jera#1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
A complete automated QA framework for
@miozu/jeracomponents, living inqa/.How it works
The runner uses Playwright to open each component in Storybook and runs 4 test layers:
Every component is tested across all variants in both light and dark mode.
Testing architecture
The runner uses Storybook as its test environment — the same approach used by Chromatic, Percy, and standard Playwright component testing. In CI, Storybook spins up at
localhost:6006before the runner starts. Locally, it uses the live Storybook URL. The runner never imports Svelte components directly — Playwright opens Storybook pages in Chromium. Storybook startup time in CI is approximately 30–60 seconds for 67 components.Results from initial sweep (65 components)
Top failing components
Root cause: 4 design tokens account for ~76% of contrast violations.
Workflow
Running locally:
In CI: Suite runs automatically, findings committed to
qa-reportsbranch.Roles
The framework handles detection automatically — finding violations, generating JSON findings, and producing Playwright regression specs. Bug analysis, classification (S1–S4), and structured bug reports are handled by Tim (QA) based on the JSON output. This separation keeps the framework focused and the QA process collaborative.
Environments
Default (Selify):
Uses
admin.selify.aicustom component docs with.preview-areaand.controls-panelselectors.Standard Storybook:
Set
STORYBOOK_MODE=storybook— selectors based on Storybook v7/v8 docs view. Please run against your local instance and open an issue if any selectors need adjusting.Output
qa/reports/— JSON findings (gitignored locally, committed toqa-reportsbranch in CI)qa/specs/— auto-generated Playwright regression specs (gitignored)qa/screenshots/— failure screenshots (gitignored)Stage filtering
Only
stableandbetacomponents are tested.draftanddeprecatedare skipped. Stage metadata lives inqa/components.json.