·playwright-testing
</>

playwright-testing

mhagrelius/dotfiles

在编写、调试或审查 Web 应用程序的 Playwright 测试时使用;在编写测试代码之前;当测试不稳定、缓慢或脆弱时;当看到超时错误、未找到元素或竞争条件时;使用 getByRole、定位器或断言时

15安装·0热度·@mhagrelius

安装

$npx skills add https://github.com/mhagrelius/dotfiles --skill playwright-testing

SKILL.md

Core principle: Test what users see and do. If a user can't find an element by its role or text, neither should your test.

Quality layers: Reliable (no flakes) → Fast (parallel, minimal waits) → Maintainable (survives refactors)

Philosophy: User-centric locators by default. Implementation details (test-ids, CSS selectors) are escape hatches, not first choices.

在编写、调试或审查 Web 应用程序的 Playwright 测试时使用;在编写测试代码之前;当测试不稳定、缓慢或脆弱时;当看到超时错误、未找到元素或竞争条件时;使用 getByRole、定位器或断言时 来源:mhagrelius/dotfiles。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/mhagrelius/dotfiles --skill playwright-testing
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 playwright-testing?

在编写、调试或审查 Web 应用程序的 Playwright 测试时使用;在编写测试代码之前;当测试不稳定、缓慢或脆弱时;当看到超时错误、未找到元素或竞争条件时;使用 getByRole、定位器或断言时 来源:mhagrelius/dotfiles。

如何安装 playwright-testing?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/mhagrelius/dotfiles --skill playwright-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/mhagrelius/dotfiles