web-testing
Skill4 starsChanged 5 months agoApache-2.0View on GitHub
Automated web application testing. Uses Playwright (browser interaction + DOM assertion) + tesseract.js (OCR screenshot text verification). Supports pipeline.json configuration for project URL, port, and DOM selectors.
- Installs packages
5 other projects use a version of this.
Adopted by
Most recently taken up by
- PracticalSwan/agent-skillstheir own version, first seen Sep 14, 2026
- darrenCWJ/agent-skills-scaffoldtheir own version, first seen Aug 9, 2026
- pyaephyo11979/rent4Utheir own version, first seen Jun 24, 2026
- MRCalderon3D/everything-game-dev-codetheir own version, first seen Mar 27, 2026
- mrgoonie/claudekit-skillstheir own version, first seen Nov 10, 2025
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- mrgoonie/claudekit-skills★ 2.2ksame name
- MRCalderon3D/everything-game-dev-code★ 90same name
- PracticalSwan/agent-skills★ 18same name
- pyaephyo11979/rent4U★ 4same name
- darrenCWJ/agent-skills-scaffold★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- changelogSkill
- coding-principlesSkill
- pipeline-initSkill
- safe-terminal-executorSkill
- self-checkSkill
- Vibe Coding RulesSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
After code change self-check passes
- Distinctive: line 37
No JS runtime errors
- Distinctive: line 55
Before running any test, check whether this project actually needs browser testing / 先判断项目是否需要浏览器测试:
- Distinctive: line 70
Check test dependencies installed:
- Very specific: line 76
Write test cases to {{pipeline.paths.tests}}smoke-test.cjs:
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web Automated Testing / Web自动化测试
Overview / 概述
自动化浏览器测试技能。使用 Playwright 进行浏览器交互与 DOM 断言,tesseract.js 做 OCR 截图文字验证。支持冒烟测试、全量测试、截图回归测试。
Automated browser testing Skill. Uses Playwright for browser interaction and DOM assertions, tesseract.js for OCR screenshot text verification. Supports smoke tests, full tests, and screenshot regression testing.
Trigger Conditions
- After code change self-check passes
- User asks to "test", "verify page"
- Need to confirm UI rendering correctness
- Screenshot regression testing
Configuration (read from pipeline.json)
| Parameter | Purpose | Example |
{{pipeline.project.testUrl}} | Test target URL | http://localhost:3000 |
{{pipeline.project.testPagePath}} | Test page path | / |
{{pipeline.paths.tests}} | Test script directory | tests/auto/ |
Test Types / 测试类型
1. Smoke Test (fast, always run)
- Page loads successfully
- Key DOM elements exist
- No JS runtime errors
2. Full Test (after major changes)
- All interaction flows
- Form submissions
- Modal/overlay open/close
- Async data loading
- Screenshot comparison
3. OCR Verification (optional, requires tesseract.js)
- Screenshot text recognition
- Key copy verification
- Multi-language support
Workflow
Step 0: Project Type Detection / 项目类型检测(V2.6)
Before running any test, check whether this project actually needs browser testing / 先判断项目是否需要浏览器测试:
- Check
pipeline.json→project.type:web/fullstack/spa/mini-program→ Continue to Step 1cli/backend-api/desktop/script→ Skip this Skill: report"Web testing skipped — project type is {type}, no browser UI to test"
- No
pipeline.json→ checkpackage.jsonfor web frameworks:- Contains
react/vue/angular/next/nuxt/expresswith astartordevscript → likely web → continue - Otherwise → skip with note:
"No web project detected — web-testing skipped"
- Contains
- Both files missing → check for
.htmlfiles in project root:- Found → possible static web → continue with caution
- Not found → skip
Why: Running Playwright on a CLI-only project wastes time and produces confusing errors. / 在纯CLI项目上跑Playwright浪费时间且报错混乱。
Step 1: Prepare
Check test dependencies installed:
npx playwright install chromiumStep 2: Create Test Script
Write test cases to {{pipeline.paths.tests}}smoke-test.cjs:
const { chromium } = require('playwright');
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
await page.goto('{{pipeline.project.testUrl}}{{pipeline.project.testPagePath}}');
await page.waitForLoadState('networkidle');
// DOM assertions
const el = await page.$('{{pipeline.testing.domSelectors.mainContainer}}');
if (!el) { console.error('FAIL: Main container not found'); process.exit(1); }
console.log('OK: Page loaded successfully');
await browser.close();
})().catch(e => { console.error('FAIL:', e.message); process.exit(1); });Step 3: Execute
node {{pipeline.paths.tests}}smoke-test.cjsStep 4: Report
Report test results: pass count / fail count, failed item screenshots and reasons.
Dependencies
npm install playwright
npx playwright install chromium
# OCR (optional)
npm install tesseract.js sharpDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

