write-e2e-tests
Skill5 starsChanged 54 days agoMITView on GitHub
Use when the user wants browser UI e2e as a Playwright Test spec — converting a completed cuawright-web run, or unblocking a missing Playwright toolchain or cuawright-web run first. Not for API-level end-to-end tests.
- Reads credentials
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Endava/BEEQtheir own version, first seen Oct 8, 2026
- igorescodro/alkaatheir own version, first seen Oct 8, 2026
- tldraw/tldrawtheir own version, first seen Oct 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- tldraw/tldraw★ 51ksame name
- igorescodro/alkaa★ 1.6ksame name
- Endava/BEEQ★ 162same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agents-mdSkill
- agents-memorySkill
- agentsview-extractSkill
- agentsview-resumeSkill
- backfill-unit-testsSkill
- dotnet-upgradeSkill
- github-epicSkill
- gitlab-epicSkill
- miseSkill
- pr-workflowSkill
- record-walkthroughSkill
- setup-agent-ready-repoSkill
- tech-leadSkill
- tidy-commitsSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 4 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
No package manifest — stop and report.
- Distinctive: line 37
Toolchain: If Playwright, browsers, or cuawright-web are missing, confirm once for those items and follow references/setup.md.
- Very specific: line 42
Find a qualifying run: Search outputs/, final_runs/, and any path the user named for plan.md plus final_script.py whose Critical Points are …
- Very specific: line 60
Convert: Start only when step 3's plan.md and final_script.py exist.
- Very specific: line 63
Scan input: Run scripts/scan-secrets.sh on final_script.py.
- Very specific: line 69
Use final_script.py for selectors and action order only.
- Very specific: line 80
Scan output: Run scripts/scan-secrets.sh on the drafted spec before writing it.
- Very specific: line 83
Place the spec in the project's existing e2e test directory (its Playwright config's testDir, or the project's established convention), …
- Distinctive: line 87
Validate: Run all three gates, in order:
- Distinctive: line 96
Repo — CI: After Validate, follow references/ci.md.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Write E2E Tests
Turns a browser UI flow into a checked-in Playwright Test spec.
CUAWright is the exploration engine:
it produces plan.md and final_script.py. This skill unblocks a missing
toolchain or run after confirmation, then converts.
Scope
The output is always a Playwright Test spec — no per-project detection of another framework, no cross-framework translation. An existing Cypress or Selenium suite stays; confirm before adding Playwright beside it.
Workflow
- Inventory. In the target project, mark each of these present or
absent: a JS package manifest and its package manager;
@playwright/testandplaywright.config; the cuawright-web skill; a qualifying run; another e2e stack (Cypress, Selenium); existing CI files; cuawright-web artifact paths git still tracks. CUAWright is present when the session's skill list namescuawright-web(or legacywebwright), bare or plugin-prefixed. Leave this step when every item is marked. No package manifest — stop and report. - Toolchain. If Playwright, browsers, or cuawright-web are missing, confirm once for those items and follow references/setup.md. Another e2e stack without Playwright — confirm adding Playwright beside it.
- Find a qualifying run. Search
outputs/,final_runs/, and any path the user named forplan.mdplusfinal_script.pywhose Critical Points are all checked. Found — show the path and reuse it unless the user asks to re-run. Otherwise go to explore. - Explore. Confirm on its own before driving the real site. If the
user has not named the flow, ask. Invoke the
cuawright-webskill with the target browser (default Chromium, e.g.playwright.chromium) and run it to Done. Leave this step when cuawright-web reports Done and a qualifying run from step 3 is on disk. Reading source is not Explore. Convert is the next step. Exploration stays in cuawright-web. - Repo — gitignore. Propose
.gitignorerules when unignored cuawright-web artifacts exist (outputs/,final_runs/, screenshots/logs) or this run just scaffolded Playwright (test-results/,playwright-report/). Write only after confirmation. Add rules only; do notgit rm --cachedalready-tracked files. - Convert. Start only when step 3's
plan.mdandfinal_script.pyexist; missing — return to Explore. How to handle a scan hit is in references/security.md.- Scan input. Run
scripts/scan-secrets.shonfinal_script.py. Non-zero exit: follow that doc. A visual read of the script is not a scan. Draft only after the scan exits 0, or after every hit has a confirmedprocess.envmapping. - Map and draft. Map each Critical Point in
plan.mdone-to-one to anexpect()assertion; that mapping is the whole of the conversion. Usefinal_script.pyfor selectors and action order only. Write credential fields asprocess.envnames; leave selectors and non-credential fixtures as literals. Never emit static delays (page.waitForTimeout()ortime.sleepconversions) — use event-driven waits (expect(locator).toBeVisible(),waitForLoadState('domcontentloaded'), orwaitForResponse()). Check optional dialogues (tours, cookie banners) with immediateawait locator.isVisible()rather than blockingwaitFor. Reuse authenticated sessions viastorageStateor API requests (request.post), avoiding repeated UI login form submissions inbeforeEachunless testing auth itself. For tests mutating shared database or server state, isolate with{ lock: '-exclusive-' }rather than disablingfullyParallelacross the entire suite. - Scan output. Run
scripts/scan-secrets.shon the drafted spec before writing it. Non-zero exit: follow that doc. Write only a spec the script accepts. Place the spec in the project's existing e2e test directory (its Playwright config'stestDir, or the project's established convention), named after the flow being converted.
- Scan input. Run
- Validate. Run all three gates, in order:
- Run — execute the generated spec once; it passes.
- Stable — re-run it 3 consecutive times; all 3 pass.
- Discoverable — the project's test-run command finds the new spec file. A remote pipeline is not required. On failure, attempt an automatic fix and re-validate, up to 2 attempts. Still failing after that — stop and report. Hand back only a spec that has passed all three gates.
- Repo — CI. After Validate, follow references/ci.md. Write only after confirmation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

