playwright-core by testdino-hq/playwright-skill
npx skills add https://github.com/testdino-hq/playwright-skill --skill playwright-core经过实践检验的、具有明确指导原则的 Playwright 指南——每种模式都包含何时(以及何时不)使用它。
46 个参考指南,涵盖 Playwright 测试的方方面面:选择器、断言、夹具、网络模拟、身份验证、视觉回归、无障碍访问、API 测试、调试等——贯穿始终提供 TypeScript 和 JavaScript 示例。
getByRole() 而非 CSS/XPath —— 对标记更改具有弹性,反映用户查看页面的方式page.waitForTimeout() —— 使用 expect(locator).toBeVisible() 或 page.waitForURL()expect(locator) 会自动重试;expect(await locator.textContent()) 则不会广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
baseURL —— 测试中零硬编码 URL2,本地为 0 —— 在重要环节暴露测试的不稳定性'on-first-retry' —— 提供丰富的调试工件,且不影响 CI 速度test.extend() 共享状态,而非模块级变量expect() 调用| 您正在做什么 | 指南 | 深入探讨 |
|---|---|---|
| 选择选择器 | locators.md | locator-strategy.md |
| 断言与等待 | assertions-and-waiting.md | |
| 组织测试套件 | test-organization.md | test-architecture.md |
| Playwright 配置 | configuration.md | |
| 夹具与钩子 | fixtures-and-hooks.md | |
| 测试数据 | test-data-management.md | |
| 身份验证与登录 | authentication.md | auth-flows.md |
| API 测试 (REST/GraphQL) | api-testing.md | |
| 视觉回归 | visual-regression.md | |
| 无障碍访问 | accessibility.md | |
| 移动端与响应式 | mobile-and-responsive.md | |
| 组件测试 | component-testing.md | |
| 网络模拟 | network-mocking.md | when-to-mock.md |
| 表单与验证 | forms-and-validation.md | |
| 文件上传/下载 | file-operations.md | file-upload-download.md |
| 错误与边界情况 | error-and-edge-cases.md | |
| CRUD 流程 | crud-testing.md | |
| 拖放操作 | drag-and-drop.md | |
| 搜索与筛选 UI | search-and-filter.md |
| 问题 | 指南 |
|---|---|
| 通用调试工作流 | debugging.md |
| 特定错误信息 | error-index.md |
| 不稳定/间歇性测试 | flaky-tests.md |
| 常见初学者错误 | common-pitfalls.md |
| 框架 | 指南 |
|---|---|
| Next.js (App Router + Pages Router) | nextjs.md |
| React (CRA, Vite) | react.md |
| Vue 3 / Nuxt | vue.md |
| Angular | angular.md |
| 主题 | 指南 |
|---|---|
| 多用户与协作 | multi-user-and-collaboration.md |
| WebSockets 与实时通信 | websockets-and-realtime.md |
| 浏览器 API (地理位置、剪贴板、权限) | browser-apis.md |
| iframe 与 Shadow DOM | iframes-and-shadow-dom.md |
| Canvas 与 WebGL | canvas-and-webgl.md |
| Service workers 与 PWA | service-workers-and-pwa.md |
| Electron 应用 | electron-testing.md |
| 浏览器扩展 | browser-extensions.md |
| 安全测试 | security-testing.md |
| 性能与基准测试 | performance-testing.md |
| 国际化与本地化 | i18n-and-localization.md |
| 多标签页与弹窗 | multi-context-and-popups.md |
| 时钟与时间模拟 | clock-and-time-mocking.md |
| 第三方集成 | third-party-integrations.md |
| 问题 | 指南 |
|---|---|
| 选择哪种定位器策略? | locator-strategy.md |
| E2E vs 组件 vs API 测试? | test-architecture.md |
| 模拟服务还是真实服务? | when-to-mock.md |
每周安装量
97
代码仓库
GitHub 星标数
158
首次出现
2026年2月16日
安全审计
安装于
codex91
github-copilot90
amp88
opencode88
kimi-cli88
gemini-cli88
Opinionated, production-tested Playwright guidance — every pattern includes when (and when not) to use it.
46 reference guides covering the full Playwright testing surface: selectors, assertions, fixtures, network mocking, auth, visual regression, accessibility, API testing, debugging, and more — with TypeScript and JavaScript examples throughout.
getByRole() over CSS/XPath — resilient to markup changes, mirrors how users see the pagepage.waitForTimeout() — use expect(locator).toBeVisible() or page.waitForURL()expect(locator) auto-retries; expect(await locator.textContent()) does notbaseURL in config — zero hardcoded URLs in tests2 in CI, 0 locally — surface flakiness where it matters'on-first-retry' — rich debugging artifacts without CI slowdowntest.extend(), not module-level variablesexpect() calls are fine| What you're doing | Guide | Deep dive |
|---|---|---|
| Choosing selectors | locators.md | locator-strategy.md |
| Assertions & waiting | assertions-and-waiting.md | |
| Organizing test suites | test-organization.md | test-architecture.md |
| Playwright config | configuration.md | |
| Fixtures & hooks | fixtures-and-hooks.md |
| Problem | Guide |
|---|---|
| General debugging workflow | debugging.md |
| Specific error message | error-index.md |
| Flaky / intermittent tests | flaky-tests.md |
| Common beginner mistakes | common-pitfalls.md |
| Framework | Guide |
|---|---|
| Next.js (App Router + Pages Router) | nextjs.md |
| React (CRA, Vite) | react.md |
| Vue 3 / Nuxt | vue.md |
| Angular | angular.md |
| Topic | Guide |
|---|---|
| Multi-user & collaboration | multi-user-and-collaboration.md |
| WebSockets & real-time | websockets-and-realtime.md |
| Browser APIs (geo, clipboard, permissions) | browser-apis.md |
| iframes & Shadow DOM | iframes-and-shadow-dom.md |
| Canvas & WebGL | canvas-and-webgl.md |
| Service workers & PWA | service-workers-and-pwa.md |
| Electron apps | electron-testing.md |
| Question | Guide |
|---|---|
| Which locator strategy? | locator-strategy.md |
| E2E vs component vs API? | test-architecture.md |
| Mock vs real services? | when-to-mock.md |
Weekly Installs
97
Repository
GitHub Stars
158
First Seen
Feb 16, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
codex91
github-copilot90
amp88
opencode88
kimi-cli88
gemini-cli88
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
40,000 周安装
| Test data | test-data-management.md |
| Auth & login | authentication.md | auth-flows.md |
| API testing (REST/GraphQL) | api-testing.md |
| Visual regression | visual-regression.md |
| Accessibility | accessibility.md |
| Mobile & responsive | mobile-and-responsive.md |
| Component testing | component-testing.md |
| Network mocking | network-mocking.md | when-to-mock.md |
| Forms & validation | forms-and-validation.md |
| File uploads/downloads | file-operations.md | file-upload-download.md |
| Error & edge cases | error-and-edge-cases.md |
| CRUD flows | crud-testing.md |
| Drag and drop | drag-and-drop.md |
| Search & filter UI | search-and-filter.md |
| Browser extensions |
| browser-extensions.md |
| Security testing | security-testing.md |
| Performance & benchmarks | performance-testing.md |
| i18n & localization | i18n-and-localization.md |
| Multi-tab & popups | multi-context-and-popups.md |
| Clock & time mocking | clock-and-time-mocking.md |
| Third-party integrations | third-party-integrations.md |