e2e-testing
Design and run reliable Playwright end-to-end tests with observable outcomes and project-specific fixtures.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- e2e-testing
- description
- Design and run reliable Playwright end-to-end tests with observable outcomes and project-specific fixtures.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档provenance/original.SKILL.md7.9 KB
- 参考文档repair.json3.1 KB
03 SKILL.md 正文
End-to-end testing with Playwright
Before repository work, read and apply Mandatory agent tools in the repository root at docs/agent-tools.md: Caveman for every task, CocoIndex Code before broad code navigation, and Crawl4AI for web-page research. Retain actual execution evidence.
Start with a user-visible behavior and the project's existing test runner, scripts, browser configuration, and fixture conventions. Use isolated test data, stable selectors that reflect the application's actual interface, and retrying assertions on observable results. Exercise meaningful failure paths and clean up test-owned state. Do not assume particular routes, counts, wallets, services, accounts, or deployment targets exist.
When a test needs a particular response, register the response wait before the triggering action. For an application that really sends a search request on input, an illustrative page-object method is:
async search(query: string) {
const [response] = await Promise.all([
this.page.waitForResponse(resp => {
const url = new URL(resp.url())
return resp.request().method() === 'GET' && url.pathname === '/api/search' && url.searchParams.get('q') === query
}),
this.searchInput.fill(query),
])
if (!response.ok()) throw new Error(`Search failed: ${response.status()}`)
}
Use the application's real URL, action, and expected status; if results are local or debounced, choose a matching observable condition instead. After the action, assert the rendered result with Playwright's retrying expect rather than assuming the response alone proves correct behavior. Avoid fixed sleeps and generic networkidle as readiness signals. Respect existing project timeouts rather than prescribing one for every application.
Run the focused test first, then the relevant project suite and browser coverage required by the change. Capture failures using the project's configured traces, screenshots, and reports; preserve their scope and explain retries, skips, and unavailable environments. A retry can help diagnose flakiness but does not make its cause fixed. Report actual results without claiming that passing tests prove the absence of defects.
The original upstream skill is preserved at provenance/original.SKILL.md. This maintained overlay corrects selected response-ordering and readiness guidance. Component controls do not measure agent effectiveness.
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
playwright-skill
Complete browser automation with Playwright. Auto-detects dev servers, writes reusable test scripts, and supports screenshots, responsive checks, UX validation, login flows, link checks, and arbitrary browser automation. Use when the user wants to test a website, automate browser interactions, validate web functionality, or perform browser-based testing.
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
zarr-python
Chunked N-D arrays for cloud storage. Compressed arrays, parallel I/O, S3/GCS integration, NumPy/Dask/Xarray compatible, for large-scale scientific computing pipelines.