browser-test-loop

Featured

Use to actually verify a web change in a real browser instead of assuming it works — click through a flow, catch console errors, check a form submits, confirm a fix on the page. Trigger when a UI change needs proof, a bug only reproduces in the browser, or the user asks to test, check, or screenshot the running app.

AI & Automation 307 stars 53 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
83
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Browser Test Loop Code that compiles is not code that works. This is the loop that closes the gap between "the diff looks right" and "the page does the thing". ## Core Behavior Drive a real browser against the running app, assert on what actually rendered, and fix what fails. Never report a UI change as working on the strength of the diff alone. ## Setup Playwright is the default. It installs its own browsers and runs headless in CI. ```bash npm i -D @playwright/test && npx playwright install chromium ``` Start the app first and hold the port — a test suite against a dead server produces a wall of timeouts that tells you nothing: ```bash npm run dev > /tmp/dev.log 2>&1 & npx wait-on http://localhost:3000 ``` ## The Loop 1. **Name the assertion in one sentence.** "After submitting the contact form with a valid email, a success message appears and no console error fires." Vague goals produce vague tests. 2. **Write the smallest script that proves it.** One flow per file. 3. **Run it.** Read the failure, not the summary. 4. **Fix the app, not the test** — unless the test encoded the wrong expectation, in which case say so out loud. 5. **Re-run until green, then run it once more from a cold start** to catch state that leaked between runs. ## What to Assert - The user-visible outcome: text on screen, a URL change, a row that appeared. - Zero unexpected console errors. Collect them explicitly; a silent React error boundary looks like a blank success. - Network calls t...

Details

Author
OneWave-AI
Repository
OneWave-AI/claude-skills
Created
11 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category