Skip to content
Back to skills

Web Testing

ASecurity

Use when writing or fixing unit tests (Vitest) or end-to-end tests (Playwright) in the Back office, or when one of its checks is red.

  • 5 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 18, 2026
ai-agentstestingapibackend

Works with

  • api

Security analysis

A100/100

Scanned November 18, 2026

npx -y skills add erumkatzwan/agentic-product-starter --skill web-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Web Testing?

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

Security grade badge for Web Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/erumkatzwan-web-testing/badge)](https://www.skillsdirectory.com/skills/erumkatzwan-web-testing)

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: web-testing
description: Use when writing or fixing unit tests (Vitest) or end-to-end tests (Playwright) in the Back office, or when one of its checks is red.
---

# Web testing

| Layer | Where | Runs against | Command |
|---|---|---|---|
| Unit | `src/**/*.test.ts(x)` | A fake API (`src/test/fakeApi.ts`) | `npm run test:coverage` |
| End-to-end | `e2e/*.spec.ts` | The real backend in SYST + the built app | `npm run e2e` |

## Rules

- Test behaviour the user sees: find elements by role and label (`getByRole`, `getByLabelText`), not CSS classes.
- Unit tests render `<App api={fakeApi(...)} />` and override only the calls the test needs.
- End-to-end tests use the seeded accounts or create their own data with unique emails, and clean up after themselves.
- Coverage must stay at or above 70% of lines.

## When a check is red

- Lint or types: run `npm run lint` and `npm run typecheck`.
- Unit tests: run `npm test`.
- End-to-end: run `npm run e2e` locally; in CI, download the Playwright report artifact.

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.