Browser test
Run and debug Playwright browser tests for this project (API, E2E, smoke). Wraps the existing tests/frontend Playwright setup with smart filtering, result parsing, and failure reporting.From its SKILL.md
npx -y skills add bos-hieu/agent-skills --skill browser-testAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.7 KB, as published. Nobody here has run it
When the user wants to run browser tests, debug a failing test, or add a new Playwright test, use ${CLAUDE_SKILL_DIR} to reference the Go file.
Test Layout
tests/frontend/
├── playwright.config.js
└── tests/
├── api/ *.api.spec.js
├── e2e/ *.e2e.spec.js
├── smoke/ split-deployment.test.js
├── unit/ *.test.js (node --test)
└── support/ helpers
Usage
go run ${CLAUDE_SKILL_DIR}/main.go [flags]
| Flag | Description |
|---|---|
--project <name> | Test project: api, e2e, smoke (default: all) |
--file <glob> | Filter test files by pattern |
--test <name> | Filter by test name substring |
--headed | Run browser in headed mode |
--debug | Run with PWDEBUG=1 |
--retries <n> | Override retry count |
--base-url <url> | Override BASE_URL (default: http://localhost:3030) |
--install | Install Playwright + chromium |
--list-tests | List discovered tests without running |
--report | Open HTML report after run |
Adding a New Test
Place in tests/frontend/tests/api/<name>.api.spec.js or tests/frontend/tests/e2e/<name>.e2e.spec.js:
import { test, expect } from '@playwright/test';
test.describe('<Feature>', () => {
test('<scenario>', async ({ page, request }) => {
// API test: use `request`; E2E test: use `page`
});
});