技能潮 SkillTide 提交收录
官方说明开源项目3 天前
shankardas-lt/playwright-agentic-automation-harness

shankardas-lt/playwright-agentic-automation-harness

AI-powered Playwright E2E automation harness using Claude Code agents, skills, hooks, and JavaScript ES modules for intelligent test generation, automated locator self-healing, and evidence-driven QA reporting.
在 GitHub 查看 ↗直链 · 无中转页
★ 数取值
0 ★ · shankardas-lt/playwright-agentic-automation-harness · 取自 GitHub 搜索 API · (2026-10-16 20:00:20 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-14 · 最近见到 2026-10-14 · 共见到 1 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
安装
npx playwright
常见问题(答案都来自我们的记录)
怎么安装?
该仓库给出的安装命令是 npx playwright。我们的记录里它是仓库自己提供的;不保证在你的客户端上直接可用。
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 shankardas-lt/playwright-agentic-automation-harness;我们收录于 2026-10-14;最近见到 2026-10-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

Playwright QA Agent Harness

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An AI-assisted, **application-agnostic** end-to-end testing harness. You describe what you want in plain English inside Claude Code (for example *"write automation for the login page"*). The harness then:
1. explores the site with the Playwright MCP browser,
2. documents what it actually observed,
3. writes Page-Object-based Playwright tests,
4. runs them and generates an Allure report,
5. repairs broken locators in the source code, under hard guardrails,
6. reports only what the test results prove.
The harness is built so it never fakes a pass. Wrong prices, wrong messages and missing features stay failed and are reported. Only locator drift (the page still has the element, under a new name or markup) is repaired, and a repair is kept only after a real Playwright rerun passes with the original assertions unchanged.
- **Default target:** https://qa-demo-website.vercel.app. To test any other site you are authorized to test, change BASE_URL and ALLOWED_HOSTS in .env; the code does not need to change.
- **Stack:** Node.js ≥ 20, JavaScript ES modules, @playwright/test 1.64.0 (pinned), allure-playwright 3.13.0 + allure 3.19.1 CLI (pinned, Node-based, no Java), Playwright MCP, Claude Code agents, skills and hooks.
> **Current state (2026-10-14):** the **Login** and **Signup** pages of the default target are explored, documented in docs/ and automated:
>
> | Spec | Test cases | Page Objects |
> |---|---|---|
> | tests/specs/login.spec.js | TC-AUTH-LOGIN-001 … 011 | login-page.js, header-component.js, products-page.js |
> | tests/specs/signup.spec.js | TC-AUTH-SIGNUP-001 … 011 | signup-page.js, home-page.js, header-component.js |
>
> Latest run: 21 passed · 0 failed · 1 skipped (headless and headed; the full suite was also stable over 5 repeats). The skip is TC-AUTH-SIGNUP-003, which needs ALLOW_ACCOUNT_CREATION=true (see Environment variables). TC-AUTH-LOGIN-008 used to fail intermittently because it clicked before the app had hydrated; BasePage.goto() now waits for hydration (tests/support/app-ready.js). The rest of the site (catalog, cart, orders, profile, checkout) is **not explored** yet.
---
Quick start
Opening the reports
To open it:
- **Allure:** npm run report:allure:open
- **Playwright HTML:** npm run report:open
Environment variables
.env is git-ignored; never commit it. .env.example lists every setting.
| Variable | Purpose |
|---|---|
| BASE_URL, ALLOWED_HOSTS | Target site and the hosts the harness may touch |
| TEST_USER_EMAIL, TEST_USER_PASSWORD | Existing test account. Needed by TC-AUTH-LOGIN-002, 004, 011 and TC-AUTH-SIGNUP-004; those tests are skipped with a reason when empty |
| ALLOW_ACCOUNT_CREATION | true lets TC-AUTH-SIGNUP-003 create a new account on every run (email qa-harness+signup- @example.invalid). Default false |
| WORKERS, RETRIES, *_TIMEOUT_MS | Execution policy |
| RUN_RETENTION | How many artifacts/runs/ / directories are kept |
Open the folder in Claude Code. CLAUDE.md, the agents, the skills and the hooks are picked up from the project automatically. The Playwright MCP server must be available, either from your user settings or from a project .mcp.json.
---
How the system works
- **Agents decide; code enforces.** The rules that must never be broken are implemented in utils/ and are unit-tested, not just written in prompts:
- which files may be edited during healing,
- that a repair changes locators only,
- that a failed repair is restored,
- that the final status comes from a real rerun.
- **Playwright runs without the AI.** Every test is a normal Playwright test (npx playwright test works). Claude Code adds exploration, authoring and repair on top.
- **One orchestrator.** Claude Code subagents cannot start other subagents. The /qa-automation skill therefore turns the main conversation into the orchestrator. Alternatively, start Claude with claude --agent qaautomation.
---
Working with Claude Code
Type requests naturally. Prefixing them with /qa-automation makes the routing explicit, but plain requests also work because the skill is described as the entry point for QA work. Each example below shows what you type and what the system does.
来源
github · https://github.com/shankardas-lt/playwright-agentic-automation-harness
按领域浏览
开源项目
收录于
3 天前

更多开源项目

查看开源项目全部 731 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引