Skip to content
Back to skills

Test In Browser

ASecurity

Use when asked to open the app in a browser and check that a flow works, click through a signup or checkout, reproduce a bug that shows in the browser, or capture the steps in screenshots. Asserts each step with Playwright and reports what passed, what failed and what was not checked. Not for a slow React page (optimize-react).

  • 145 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgoreact

Works with

  • cli

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Heyvhuang/copybook-skills --skill test-in-browser --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test In Browser?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Test In Browser
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/heyvhuang-test-in-browser/badge)](https://www.skillsdirectory.com/skills/heyvhuang-test-in-browser)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: test-in-browser
description: "Use when asked to open the app in a browser and check that a flow works, click through a signup or checkout, reproduce a bug that shows in the browser, or capture the steps in screenshots. Asserts each step with Playwright and reports what passed, what failed and what was not checked. Not for a slow React page (optimize-react)."
license: Apache-2.0 (see LICENSE.txt and NOTICE)
---

# Test a web flow

## 1. Set up the run

Pick the entry route, test data, and visible outcome. Use the project's browser runner and fixtures when available. Use an isolated local or test environment for writes. Start the app with its documented command if needed, poll readiness with a timeout, and stop any process you started after the run.

## 2. Open a clean page

Open a clean browser context. Inspect the rendered page after its first relevant control is ready. Prefer locators by role and accessible name or label, scoped to the relevant form or region. Use Playwright's auto-waiting and assert the expected state directly. Pages with polling or streaming may never go idle.

## 3. Walk the flow

Walk the happy path and one relevant failure or retry. Assert the visible result at each transition. Where the outcome must persist, check it after reload or read it back from the test fixture. Capture screenshots after assertions at the widths that matter, 320 among them, and check that each region's content fits inside it, not only that the page does not scroll sideways. Use synthetic data and keep credentials and verification codes out of artifacts.

## 4. When a step fails

On failure, record the route, viewport, last passing step, and first failing assertion. Capture the current page and relevant console or request errors. If a fix is in scope, reproduce the failure before changing code, then rerun the same path and any neighboring path it affects.

## Report

Look at every screenshot before you report: text assertions pass over a broken layout. Report each fault you see; when fixing is in scope, reproduce it as an assertion that fails first, then fix it.

Report which outcomes passed, where each screenshot was taken, and which states remain unverified. See [example.md](example.md) for a reservation flow in four browser configurations at three widths.

Based on anthropics/skills (Apache-2.0), rewritten by Copybook.

Files in this skill

  • CHANGES.md951 B
  • LICENSE.txt11.1 KB
  • NOTICE312 B
  • SKILL.md2.3 KB
  • example.md3.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.