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 skills add kid-sid/codex-spellbook --skill end-to-end-testinggit clone --depth 1 https://github.com/kid-sid/codex-spellbookWrote 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/kid-sid/codex-spellbook/end-to-end-testing)<a href="https://agentmods.dev/skills/kid-sid/codex-spellbook/end-to-end-testing"><img src="https://agentmods.dev/badge/skills/kid-sid/codex-spellbook/end-to-end-testing/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kid-sid/codex-spellbook/end-to-end-testing"><img src="https://agentmods.dev/badge/skills/kid-sid/codex-spellbook/end-to-end-testing.svg" alt="Reviewed on agentmods" width="80" 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.00045 | $0.00690 |
| Opus 5.5 | $0.00018 | $0.00276 |
| Sonnet 5.5 | $0.00009 | $0.00138 |
| Haiku 4.5 | $0.00005 | $0.00069 |
Grade A, and why
end-to-end-testing 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 3mo 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 — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
End-to-End Testing
Validate complete user workflows across the entire stack, ensuring that UI components, APIs, and databases work together in a production-like environment.
When to Activate
- Automate a critical user journey (Signup, Checkout, etc.)
- Resolve flaky browser tests or slow CI cycles
- Implement visual regression or screenshot testing
- Choose a selector strategy (ARIA vs CSS vs Test ID)
- Test cross-browser or mobile responsiveness
- Simulate network failures or latency in the UI
- Verify analytics or external tracking pixels
Selector Strategy
| Type | Example | Stability | Recommendation |
|---|---|---|---|
| User-facing (ARIA) | getByRole("button", { name: "Submit" }) |
High | Primary: Tests what the user sees |
| Data attribute | getByTestId("submit-btn") |
Medium | Secondary: Use when ARIA is ambiguous |
| CSS Class/ID | locator(".btn-primary") |
Low | Avoid: Highly coupled to styling |
Execution Strategy
| Concern | Strategy |
|---|---|
| Test Data | Use a dedicated setup API or direct DB seed before each run |
| State Isolation | Clean cookies, localStorage, and indexedDB between tests |
| Waiting | Use auto-waiting or "Wait for State" (loading spinner gone) over hard sleeps |
BAD
// Flaky and coupled to implementation
await page.click('.login-submit');
await page.waitForTimeout(5000);
expect(await page.url()).toContain('/dashboard');
GOOD
// Stable and user-centric
const submitBtn = page.getByRole('button', { name: /log in/i });
await submitBtn.click();
await expect(page).toHaveURL(/\/dashboard/);
await expect(page.getByText(/welcome back/i)).toBeVisible();
Flakiness Prevention
| Risk | Solution |
|---|---|
| Animation lag | Disable CSS animations in the test environment |
| Third-party scripts | Block or stub chat widgets, ads, and telemetry |
| Race conditions | Assert state changes (e.g. "button is hidden") before next step |
Checklist
- Selectors use ARIA roles or Test IDs (no CSS classes)
- Tests assertions wait for specific UI state changes (not time)
- Every test starts from a clean state (cookies, storage, data)
- Core user journeys (Happy Paths) are covered first
- Error states and validation messages are verified
- Network requests are monitored or stubbed to prevent external flake
- Screen sizes (mobile vs desktop) are explicitly set
- Heavy animations are disabled to speed up execution
- Artifacts (trace, video, screenshots) are captured on failure
- Test data is isolated to prevent parallel run conflicts
- Parallelism is enabled and tuned for CI resources
- Senseless "Wait for X seconds" are replaced with "Wait for Locator"
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.
- 3mo ago First seen · 78 lines · 45 tokens per session scan A 4326724eafb4
end-to-end-testing is a skill published in the GitHub repository kid-sid/codex-spellbook (22 stars, last pushed 6mo ago), licensed MIT. It adds 45 tokens to every session and 690 once invoked, about $0.0002 per session on Opus 5.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-30.
end-to-end-testing compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| end-to-end-testingkid-sid/codex-spellbook | Skill | 22 | 6mo ago | MIT | A | 45 | Claude Code, Codex |
| cua-driverdavidondrej/skills | Skill | 4.4k | 5d ago | MIT | A | 68 | Claude Code, Codex |
| create-verification-skillget-bb/bb | Skill | 6.3k | today | MIT | A | 57 | Claude Code, Codex |
| webapp-testinganthropics/skills | Skill | 203k | today | none | A | 35 | Claude Code |
| codex-computer-usedavidondrej/skills | Skill | 4.4k | 5d ago | MIT | A | 53 | Claude Code, Codex |
| test-electron-appPostHog/posthog-foss | Skill | 734 | today | MIT | A | 112 | Claude Code |
| smoke-testSkyvern-AI/skyvern | Skill | 24k | today | AGPL-3.0 | A | 50 | Claude Code, Codex |