e2e-session
WAY 1 — full UI E2E (browser) session. Use when the user says "e2e it", "test it", "run e2e", "start testing", "qa this" — requirements (text or a tracker issue) or an approved test plan → plan approved → Gherkin/playwright-bdd tests → run → heal or file bugs → session report.
- License 许可
- MIT
- 最近更新
- 2026-11-06
- Stars
- ★ 5
- Forks
- 4
01 前言 Front Matter
- name
- e2e-session
- description
- WAY 1 — full UI E2E (browser) session. Use when the user says "e2e it", "test it", "run e2e", "start testing", "qa this" — requirements (text or a tracker issue) or an approved test plan → plan approved → Gherkin/playwright-bdd tests → run → heal or file bugs → session report.
03 SKILL.md 正文
WAY 1 — Full UI E2E Session
Run CLAUDE.md Step 0 (environment) first, and pick the providers per the tracker skill.
Step 1: Gather inputs
You need two things. Ask before proceeding if either is missing:
- Requirements: plain text, an issue ref/URL (
#148,SHOP-148), orPlan:(an approved test plan, which skips Phase 1) - App URL: resolved from
--env(ask if ambiguous)
For an issue ref: fetch it (issue.get) and extract the title, body, labels, linked MRs/PRs and milestone. Use that as the requirements, and don't ask the user again.
Phase 1: Check requirements
Apply the requirements-analysis skill inline (§1–3): build the requirements model from the text or issue, and run the readiness gate. In one message, ask the gate's open questions and, when the source has no ACs, show the derived R-NN Requirements table for confirmation. Wait for the answers and update the model. Don't test against guesses. Scenario selection (§4–5) happens inside test-writer.
Phase 2: Plan, approve, write
- Plan: with
Plan:, read it per thetest-planskill's Reading a plan. Otherwise run that skill's Phase 2–3 (uitype, plusvisual: trueif the user asked for visual checks):test-writerinplanmode,plan-check.mjs, thetest-planissue, and the approval question.plan: autoskips the question (statusauto-approved, labelplan-auto-approved). Nothing is written or run before approval - Write:
test-writerinwritemode with the approved plan writes exactly itsTest#<nn>.{md,feature,steps.ts}triples into the plan's test folder, plus the index.md. Thennode ${CLAUDE_PLUGIN_ROOT}/scripts/plan-check.mjs <plan path>, and report anything it flags - File one
test-caseissue per test, each linked to thetest-planissue (issue.link, per thetrackerskill)
Phase 3: Execute
Run test-execution-agent with --project=e2e, scoped to the Phase 2 folder. Accessibility checks run inside each scenario, and failure artifacts are captured automatically.
Phase 4: Heal, then report bugs
For each failure, go by test-execution-agent's fields:
failure_kind: locator→ runtest-healer(propose mode) on all of them in one call. Show the proposed heals to the user. On approval, re-runtest-healerin apply mode. Healed tests go into the session report under "Tests healed — confirm intended" and get no bug.not-healable: element missingcontinues to step 2- Otherwise apply the
bug-reportskill. It also skips the non-bug outcomes (baseline created, quarantined, network/setup blocked) - File the bug with its labels (
issue.create), attaching the screenshot (file.attach) - If an MR/PR is linked to the feature, comment on it referencing the bug (
change.comment) - Comment on the matching
test-caseissue:Failed in run <RUN_ID> → <bug ref>
Phase 5: Session summary
Apply the session-report skill (WAY 1 template). It saves ./qa-artifacts/sessions/session-<YYYY-MM-DD-HH-MM>.md and files the qa-session-report issue. Include: tests healed, quarantined failures, and baselines created, each in its own short list.
04 同仓库更多 Skills
write-tests
WAY 4 — write test cases only, no execution. Use when the user says "write it", "write tests", "generate test cases" — an approved test plan (`Plan:`), or requirements (text or a tracker issue) planned and approved first, optional App/Spec/MR or PR → exactly the planned test files.
verify-fix
WAY 9 — verify that a bug is fixed by running its regression test. Use when the user says "verify it", "verify fix", "is #142 fixed", "check the fix" with one or more bug refs (#142, SHOP-142), or "verify all" for every open bug that has a regression test.
user-story-format
Reference only — the single definition of this project's user-story body (story, Gherkin ACs, Missing Information, DoD) and its AC/scenario rules. Read by user-story-enhancer (WAY 6) and benchmark-gap-story-writer (WAY 8) so stories they write stay identical in shape and WAY 6 can re-score WAY 8's output. Not a workflow on its own.
tracker
Provider-neutral contract for every issue-tracker and code-host action (create/update/comment/close issues, attach files, comment on MRs/PRs, read CI runs and logs) plus label conventions and failure handling. Every WAY calls these operations; the matching provider-* skill says how to perform them on GitLab, GitHub, Jira, Azure DevOps, or Bitbucket.
traceability
WAY 14 — requirements traceability matrix for a user story (each acceptance criterion) or a test folder written from plain text (each R-NN requirement) → the tests covering it → their latest result → open bugs. Use when the user says "trace it", "traceability", "is #148 covered", "coverage of SHOP-148", "trace it <folder>".
test-plan
WAY 19 — design a test plan before any test code. Use when the user says "plan it", "plan tests", "test plan", "design tests" with requirements (text or a tracker issue), optional App/Spec/MR or PR. Output is the test plan (scope, levels, one row per Test#<nn> with category, tags, covers, priority, coverage, entry/exit criteria, risks), reviewed by `review-plan` (WAY 20), filed for approval; `write it Plan:` / `e2e it Plan:` then write exactly that plan. Also holds the plan format every other WAY reads.