writing-browser-e2e-tests

writing-browser-e2e-tests is a skill for Claude Code, Codex from wahidyankf/ose-public. It costs 30 tokens per session (1,082 once invoked), scanned A, original, MIT.

A set of standards for writing Playwright end-to-end tests. Playwright is a tool that tests a complete application through a browser, from the user's point of view.

In plain words
What is it for?
Use it when creating or updating Playwright browser tests, including tests that combine user-interface actions with API calls.
Why use it?
It gives agents consistent guidance for test structure, selectors, checks, page objects, configuration, isolation, and debugging.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when creating or updating Playwright browser tests, including tests that combine user-interface actions with API calls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wahidyankf/ose-public/writing-browser-e2e-tests
Install

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.

Any agent
npx skills add wahidyankf/ose-public --skill writing-browser-e2e-tests
Clone the repo
git clone --depth 1 https://github.com/wahidyankf/ose-public

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for writing-browser-e2e-tests

README.md
[![agentmods](https://agentmods.dev/badge/skills/wahidyankf/ose-public/writing-browser-e2e-tests/github.svg)](https://agentmods.dev/skills/wahidyankf/ose-public/writing-browser-e2e-tests)
Your own site
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/writing-browser-e2e-tests"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/writing-browser-e2e-tests/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.

agentmods 80×15 button for writing-browser-e2e-tests

Your own site · 80×15
<a href="https://agentmods.dev/skills/wahidyankf/ose-public/writing-browser-e2e-tests"><img src="https://agentmods.dev/badge/skills/wahidyankf/ose-public/writing-browser-e2e-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,082 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.01082
Opus 5.5 $0.00012 $0.00433
Sonnet 5.5 $0.00006 $0.00216
Haiku 4.5 $0.00003 $0.00108

Measured 2d ago against content hash 1d720b51fec7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

writing-browser-e2e-tests scanned grade A with 1 finding 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 2d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

— real-browser checklists, `rtk curl` for HTTP APIs, and protocol-native clients for non-HTTP APIs.
.agents/skills/writing-browser-e2e-tests/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Playwright E2E Testing Standards

Purpose

Progressive disclosure of Playwright end-to-end testing standards for agents writing E2E tests.

Authoritative Source: docs/explanation/software-engineering/automation-testing/tools/playwright/README.md

Usage: Auto-loaded for agents when writing Playwright E2E tests. Provides quick reference to test organization, selectors, assertions, page objects, and debugging patterns.

Quick Standards Reference

OSE Platform Context

Islamic Finance Testing

Zakat Calculator Tests:

test("calculates zakat correctly", async ({ page }) => {
  await page.goto("/zakat-calculator");
  await page.getByLabel("Wealth Amount").fill("100000");
  await page.getByRole("button", { name: "Calculate" }).click();

  // Verify 2.5% calculation
  await expect(page.getByTestId("zakat-amount")).toHaveText("RM 2,500.00");
});

Murabaha Contract Tests:

test("murabaha contract workflow", async ({ page }) => {
  const murabaha = new MurabahaPage(page);
  await murabaha.goto();
  await murabaha.createContract({
    asset: "Vehicle",
    cost: 50000,
    profitRate: 5,
  });

  await expect(page.getByText("Contract Created")).toBeVisible();
  await expect(page.getByTestId("total-payment")).toContainText("52,500");
});

Test-Driven Development for E2E

TDD applies to E2E test authoring: write the failing Playwright spec — or a failing Playwright-MCP manual verification script — before the feature implementation exists. Both forms follow Red→Green→Refactor:

Read the full file on GitHub · 94 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2d ago First seen · 94 lines · 30 tokens per session scan A 1d720b51fec7

Subscribe to this mod's changes

writing-browser-e2e-tests is a skill published in the GitHub repository wahidyankf/ose-public (12 stars, last pushed today), licensed MIT. It adds 30 tokens to every session and 1,082 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-14.