Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/systemowiec/ai-agents-workspace-starter/write-e2e-testsnpx skills add systemowiec/ai-agents-workspace-starter --skill write-e2e-testsgit clone --depth 1 https://github.com/systemowiec/ai-agents-workspace-starterWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/systemowiec/ai-agents-workspace-starter/write-e2e-tests)<a href="https://agentmods.dev/skills/systemowiec/ai-agents-workspace-starter/write-e2e-tests"><img src="https://agentmods.dev/badge/skills/systemowiec/ai-agents-workspace-starter/write-e2e-tests.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00027 | $0.00609 |
| Opus 5 | $0.00014 | $0.00304 |
| Sonnet 5 | $0.00005 | $0.00122 |
| Haiku 4.5 | $0.00003 | $0.00061 |
Grade A, and why
write-e2e-tests scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write E2E Tests - End-to-End Tests in Playwright
Overview
Procedure for writing E2E tests in Playwright with Page Object Model. Tests run in a Docker container, data seeded via API.
When to Use
- New feature requires E2E test coverage
- Existing test needs updating after UI changes
- New user flow to automate
When NOT to use:
- Backend unit tests (use
write-python-tests) - React component tests (use testing-library in
frontend/) - Manual page exploration (use Playwright MCP Server)
Process
1. Identify the flow to test
Questions:
- What user flow are we testing? (e.g. login, order creation)
- What data is needed? (users, products, etc.)
- Does the test require authentication?
- What are the key assertions?
2. Create or update the Page Object
e2e/pages/{name}.page.ts
POM rules:
- Each page/component has a separate file
- Use
getByTestId()as the primary selector - Methods describe user actions (not technical details)
- Return
Promise<void>orPromise<Locator>
3. Create a fixture (if needed)
e2e/fixtures/{name}.fixture.ts
- Data seeding: via API, NOT via UI
- Auth state: storageState, login once
- Cleanup: remove data after test
4. Write the test
e2e/tests/{feature}/{name}.spec.ts
Test pattern: test.describe('Feature') > test('should...') > Arrange (POM + goto) > Act (actions) > Assert (expect(...).toBeVisible())
5. Run and verify
# Single test
make e2e TEST=tests/auth/login.spec.ts
# Full suite
make e2e
# Report
make e2e-report
6. Check determinism
Run the test 3 times - it must pass every time:
make e2e && make e2e && make e2e
New Test Checklist
- Page Object created for each page in the flow
- Selectors based on
data-testid - Data seeded via API fixture
- No
waitForTimeout- use smart waits - Test independent from other tests
- Test passes 3x in a row
- HTML report - readable
See also
- Role:
.agents/roles/e2e-engineer.md - Workflow:
.agents/workflows/as-e2e-engineer.md
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 5d ago First seen · 98 lines · 27 tokens per session scan A afe6f7063716
write-e2e-tests is a skill published in the GitHub repository systemowiec/ai-agents-workspace-starter (2 stars, last pushed 5mo ago), licensed MIT. It adds 27 tokens to every session and 609 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
use-agent-browser-for-airi
Test AIRI display-model imports with agent-browser across stage-tamagotchi Electron, stage-web, and stage-pocket mobile web layouts. Use when uploading and verifying contributor-supplied Live2D ZIP, VRM, or MMD ZIP/PMX/PMD files through AIRI's model selector, including onboarding bypass, format-specific import…
run-integration-tests
Build, pack, and run .NET MAUI integration tests locally. Validates templates, samples, and end-to-end scenarios using the local workload.
cli-e2e-testcase-writer
Use when adding or updating Go CLI E2E coverage for one tests/clie2e/{domain} domain of the compiled lark-cli, especially when the work requires live --help or schema exploration, scenario-based clie2e.RunCmd workflows, and per-domain coverage.md maintenance.
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
agent-device-evidence
Records iOS/Android native MP4 evidence for test/repro flows extracted from an Expensify GitHub PR or issue. Use when the user asks to "record the flow for PR.
dogfood
Systematically explore and test a mobile app on iOS/Android with agent-device to find bugs, UX issues, and other problems. Use when asked to dogfood, QA, exploratory test, find issues, bug hunt, or test this app on mobile.