Select risk-based frontend test layers, environments, fixtures, acceptance coverage, and release evidence without mandating every layer. Use this skill when planning QA scope, Definition of Done, regression coverage, test data, or frontend release criteria.
Map user risk and acceptance criteria to the smallest test layers that prove behavior, then add integration or end-to-end evidence for critical boundaries.
When to invoke
"Create a risk-based test strategy for this frontend feature."
"Choose unit, component, integration, E2E, visual, and manual coverage."
"Map acceptance criteria to tests and environments."
"Define frontend fixtures and release evidence."
"Review whether our test pyramid fits this change."
Procedure
Inventory story and acceptance IDs, changed behavior, access, money, identity, destructive actions, regulated data, contracts, devices, and traffic risk.
Detect existing test runners, fixtures, browser/device projects, contracts, services, CI commands, and artifact policy.
Read references/test-layer-selection.md and select only layers that prove the risks.
Assign stable SC-NNN scenarios and map every applicable acceptance ID to automated evidence or a documented manual procedure.
Define deterministic data, environment, browser/device, locale, timezone, feature flags, service revisions, seed, and cleanup.
Define flaky-test handling, artifact redaction, ownership, and release blockers.
Deliver assets/test-strategy.md and assets/traceability-matrix.md when the project has no equivalent.
Layer policy
Static, unit, component, mocked integration, contract, service integration, end-to-end, visual, accessibility, performance, discoverability, and device testing are distinct evidence categories. Do not mandate every layer.
Explain why each layer is applicable or not applicable. Coverage percentages diagnose gaps but are not universal release targets.
Repeatability and evidence
Use synthetic or properly anonymized data.
Freeze dates, randomness, locale, timezone, and feature flags when they affect results.
Isolate tests from order and shared mutable state.
Record runtime, browser, OS/device, dependency and service revisions, build ID, data fixture, first-attempt status, and retries.
Keep screenshots, traces, videos, and network logs in test artifact storage unless policy requires committed evidence.
Redact credentials, tokens, personal data, customer content, and private URLs.
Limits
Do not add a new test runner when the established tool can prove the behavior.
Do not use retries to convert unexplained intermittent failure into a pass.
Do not treat mocks as proof of real service compatibility.
Do not mark a required unavailable environment as passed.
Flaky-test and retry policy records first-attempt status and ownership.
Evidence hygiene and unavailable required checks are explicit.
1---2name: frontend-test-strategy-33description: Select risk-based frontend test layers, environments, fixtures, acceptance coverage, and release evidence without mandating every layer. Use this skill when planning QA scope, Definition of Done, regression coverage, test data, or frontend release criteria.4---56<!-- Generated from harness/github-copilot/plugins/frontend-experience/skills/frontend-test-strategy/SKILL.md by harness/claude-code/scripts/convert_from_copilot.py. Edit the source, not this file. -->78# Frontend test strategy910Map user risk and acceptance criteria to the smallest test layers that prove behavior, then add integration or end-to-end evidence for critical boundaries.1112## When to invoke1314- "Create a risk-based test strategy for this frontend feature."15- "Choose unit, component, integration, E2E, visual, and manual coverage."16- "Map acceptance criteria to tests and environments."17- "Define frontend fixtures and release evidence."18- "Review whether our test pyramid fits this change."1920## Procedure21221. Inventory story and acceptance IDs, changed behavior, access, money, identity, destructive actions, regulated data, contracts, devices, and traffic risk.232. Detect existing test runners, fixtures, browser/device projects, contracts, services, CI commands, and artifact policy.243. Read [references/test-layer-selection.md](references/test-layer-selection.md) and select only layers that prove the risks.254. Assign stable `SC-NNN` scenarios and map every applicable acceptance ID to automated evidence or a documented manual procedure.265. Define deterministic data, environment, browser/device, locale, timezone, feature flags, service revisions, seed, and cleanup.276. Define flaky-test handling, artifact redaction, ownership, and release blockers.287. Deliver [assets/test-strategy.md](assets/test-strategy.md) and [assets/traceability-matrix.md](assets/traceability-matrix.md) when the project has no equivalent.2930## Layer policy3132Static, unit, component, mocked integration, contract, service integration, end-to-end, visual, accessibility, performance, discoverability, and device testing are distinct evidence categories. Do not mandate every layer.3334Explain why each layer is applicable or not applicable. Coverage percentages diagnose gaps but are not universal release targets.3536## Repeatability and evidence3738- Use synthetic or properly anonymized data.39- Freeze dates, randomness, locale, timezone, and feature flags when they affect results.40- Isolate tests from order and shared mutable state.41- Record runtime, browser, OS/device, dependency and service revisions, build ID, data fixture, first-attempt status, and retries.42- Keep screenshots, traces, videos, and network logs in test artifact storage unless policy requires committed evidence.43- Redact credentials, tokens, personal data, customer content, and private URLs.4445## Limits4647- Do not add a new test runner when the established tool can prove the behavior.48- Do not use retries to convert unexplained intermittent failure into a pass.49- Do not treat mocks as proof of real service compatibility.50- Do not mark a required unavailable environment as passed.5152## Progressive disclosure and bundled resources5354- [references/test-layer-selection.md](references/test-layer-selection.md): layer decision matrix.55- [assets/test-strategy.md](assets/test-strategy.md): fallback strategy template.56- [assets/traceability-matrix.md](assets/traceability-matrix.md): QA-oriented traceability template.57- [evals/evals.json](evals/evals.json): representative output evaluations.5859## Output template6061```markdown62## Frontend test strategy result63**Status:** ready | needs decision | blocked6465### Risk and layer matrix66| Scenario | Acceptance | Risk | Layer | Environment | Reason |67| --- | --- | --- | --- | --- | --- |6869### Data and repeatability70- <fixture, seed, cleanup, frozen inputs>7172### Release evidence73- <required automated/manual evidence and blocker>74```7576## Quality gate7778- [ ] Every applicable acceptance ID maps to a scenario and evidence.79- [ ] Test layers are selected by behavior and risk, with applicability rationale.80- [ ] Data, environment, seed, cleanup, locale, time, feature flags, and revisions are reproducible.81- [ ] Mock, contract, real-service, E2E, visual, accessibility, performance, and device evidence remain distinct.82- [ ] Flaky-test and retry policy records first-attempt status and ownership.83- [ ] Evidence hygiene and unavailable required checks are explicit.
Run npx skillmds@latest add paulasilvatech/frontend-test-strategy-3 in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Select risk-based frontend test layers, environments, fixtures, acceptance coverage, and release evidence without mandating every layer. Use this skill when planning QA scope, Definition of Done, regression coverage, test data, or frontend release criteria. It is listed under Web & Frontend on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
paulasilvatech (@paulasilvatech) published this skill. Their other Agent Skills are listed on their SkillMD profile.