/alex-agent-skills:e2e-test-designfrom alex-agent-skills
Design end-to-end (e2e) test scenarios by exploring a live, running app with the `pw` browser CLI. This is a design-thinking skill. It maps real user journeys, ranks them by risk, and writes a layered set of markdown scenario docs organised as an Epic / Feature / Story tree with severity labels and Gherkin steps, ready to map onto Allure Report. It does not write test code, selectors, fixtures, or runner config. Use it whenever the user asks what to test end-to-end, wants an e2e test plan or scenario list, asks to design or review e2e coverage, or says things like "how should we test this flow" or "what scenarios do we need", even if they do not say "e2e" explicitly. Requires a running app URL and the `pw` CLI from the playwright-cli skill.
Ships in alex-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Explore a live app, then design what to test end-to-end as a layered, Allure-ready scenario set. Design only: no test code, selectors, fixtures, or runner config. The deliverable is a folder of markdown.
The design is a tree. Epic, Feature, and Story are Allure Report's own grouping layers, so the result drops into Allure as-is.
| Layer | What | Example |
|---|---|---|
| Epic | A product area | Shopping |
| Feature | One journey | Checkout |
| Story | One behavior | Check out as a guest |
| Scenario | One test, written in Gherkin | Guest checkout, declined card |
#btn-2".Feature, Background, Scenario,
Given / When / Then / And / But). Bold step keywords in markdown
(**Given**, **When**, ...) so they read as grammar, not labels. Shared
setup goes in Background.**Given** (or shared
Background) states the starting point.?auth=-style backdoors.blocker / critical / normal /
minor / trivial, by how much damage a failure does.pwBrowser work goes through the pw CLI (playwright-cli skill). A session keeps
its state between calls, so log in once and keep going. pw help tasks maps a
request to a command.
# one page: goto prints the accessibility snapshot; links and text extract from it
pw hl goto http://localhost:3000/login
pw hl links
pw hl text main
# multi-step (log in, then act) in one call; element refs (e12...) come from the snapshot
pw hl do "goto http://localhost:3000/login" "fill e12 [email protected]" "fill e13 secret" "click e14" "wait-for --url=/dashboard" "snap"
# backdoors: dump the real source, scan for hidden routes and auth params
curl -s http://localhost:3000 | grep -iE 'auth=|route|debug'
Use pw hl (headless, your cookies) by default and pw live only for login
walls you must click through yourself.
Vary one thing on a journey; ask what should happen. Pick the few that matter, not every row.
| Lens | Ask |
|---|---|
| Lists & items | Create, view, edit, delete. Empty list, one item, many, at the limit. |
| State transitions | Each status an item moves through, what is allowed and blocked. A filter: one representative value, not all. |
| Bad input | Empty, too long, wrong format, duplicate. One scenario for an incomplete form. |
| Failures | Server error, declined payment, slow or timed-out response. |
| Identity | Logged out, each role, expired session, someone else's data by URL, ?auth=-style backdoors. |
| Naughty user | Hit back mid-payment, double-click submit, two tabs at once, paste emoji, refresh mid-flow. |
| Interrupt & undo | Reload mid-flow (does the session survive?), cancel halfway, abandon and return. |
| Chrome & routing | Nav shows or hides on the right pages, toasts appear and dismiss, direct-load each route, unknown route shows 404. |
| Cross-feature | Does finishing journey A change what journey B shows? |
An overview doc first, then one reference partial per feature:
e2e-scenarios/
overview.md read first: tree linking every partial, severity
counts, risks & gaps, deliberately-not-covered
shopping/checkout.md a partial: one feature, its stories and scenarios
Example overview.md:
# E2E Test Scenario Design: <App>
App under test, scope, roles, date.
## Epic / Feature / Story tree
- Shopping
- [Checkout](shopping/checkout.md) (4 scenarios)
- [Cart](shopping/cart.md) (3 scenarios)
- Account
- [Sign in](account/sign-in.md) (5 scenarios)
## Severity counts
blocker 3, critical 11, normal 18, minor 6, trivial 1
## Risks and gaps
What you could not explore, assumptions made, open questions.
## Deliberately not covered
What e2e skips on purpose and why.
Example partial shopping/checkout.md:
# Feature: Checkout (Epic: Shopping)
## Story: Check out as a guest
### Background:
- **Given** the user is not logged in
- **And** the cart holds one item
### Scenario: Guest checks out with a valid card
Labels: epic=Shopping, feature=Checkout, story=Check out as a guest, severity=critical, tags=[happy-path, smoke]
- **Given** the guest is on the cart page
- **When** they enter a valid card
- **And** they submit the checkout form
- **Then** an "Order confirmed" message and an order number appear
### Scenario: Checkout shows an error on a declined card
Labels: epic=Shopping, feature=Checkout, story=Check out as a guest, severity=normal, tags=[error]
- **Given** the guest is on the checkout page
- **When** they submit a card the bank declines
- **Then** an inline "Card declined" error shows
- **And** no order is created
Labels copy into Allure annotations; each bolded Gherkin step (**Given** /
**When** / **Then** / **And** / **But**) is one Allure step.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub duyphaphach/agent-skills --plugin alex-agent-skills33 skills in this plugin
/basecampInteract with Basecamp via the Basecamp CLI. Full API coverage: projects, todos, cards,
messages, files, schedule, check-ins, timeline, recordings, templates, webhooks,
subscriptions, lineup, and campfire. Use for ANY Basecamp question or action.
/cert-tutorAct as a personal tutor for professional certification exams (AWS, Azure, GCP, Kubernetes, security, PMP, and similar). Use whenever the user is studying for a cert - explaining an exam topic or service, quizzing with exam-style scenario questions, reviewing missed questions, running a timed mock exam, or asking "which service for X" or "is this the right answer". Trigger even for a single question, and even if the user never says "teach me", e.g. "difference between Kendra and OpenSearch", "quiz me on IAM", "why is B wrong here"./code-review-and-qualityConducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch./concizeTighten the wording and presentation of any document, README, runbook, comment, commit message, or chat reply, or restate a message in its shortest clear form. Use whenever the user asks to shorten, tighten, condense, make concise, restate, rephrase, reword, clean up, review wording, or improve the layout of text; whenever they say something is too long, wordy, repetitive, hard to scan, or sounds like AI; whenever they want em dashes, smart quotes or other AI-trace punctuation stripped, or a document checked for plain English; and whenever they ask "say this better" or "how should I phrase this". Also use it on any document you generated that runs past one screen, before you hand it over. Keywords concise, concize, tighten, shorten, restate, rephrase, wording, presentation, scannable, terminology, refine, plain english, em dash, smart quotes, prose cleanup, ai detection./frontend-refactoringUse when the user wants to migrate templates to the new design system convention without breaking behavior or visuals. Examples: "Refactor this template", "Migrate this view to the new convention", "Clean up these class names", "Extract this pattern to a partial", "Replace repeated HTML with a loop"/gwsGoogle Workspace through the `gws` CLI (Drive, Sheets, Gmail, Calendar, Docs, Slides, Tasks, People, Chat, Forms, Keep, Meet), on the work or the personal Google account, picked from the request. Use for any task that reads or changes Google Workspace data: list or search Drive files, read or write a spreadsheet, read or send mail, create or move calendar events, read a Google Doc, post to Chat. Prefer it over the Drive and Sheets connectors. Keywords: google drive, sheets, gmail, calendar, docs, slides, google chat, workspace, gws.