e2e-testing
✓与 Playwright 一起对全栈 Python/React 应用程序进行端到端测试模式。在为完整的用户工作流程(登录、CRUD、导航)、关键路径回归测试或跨浏览器验证编写 E2E 测试时使用。涵盖测试结构、页面对象模型、选择器策略(data-testid > 角色 > 标签)、等待策略、身份验证状态重用、测试数据管理和 CI 集成。不涵盖单元测试或组件测试(使用 pytest-patterns 或 React-testing-patterns)。
SKILL.md
Every page gets a page object class that encapsulates selectors and actions. Tests never interact with selectors directly.
| Priority | Selector | Example | When to Use |
| 1 | data-testid | getByTestId("submit-btn") | Interactive elements, dynamic content | | 2 | Role | getByRole("button", { name: /save/i }) | Buttons, links, headings, inputs | | 3 | Label | getByLabel("Email") | Form inputs with labels | | 4 | Placeholder | getByPlaceholder("Search...") | Search inputs |
与 Playwright 一起对全栈 Python/React 应用程序进行端到端测试模式。在为完整的用户工作流程(登录、CRUD、导航)、关键路径回归测试或跨浏览器验证编写 E2E 测试时使用。涵盖测试结构、页面对象模型、选择器策略(data-testid > 角色 > 标签)、等待策略、身份验证状态重用、测试数据管理和 CI 集成。不涵盖单元测试或组件测试(使用 pytest-patterns 或 React-testing-patterns)。 来源:hieutrtr/ai1-skills。
可引用信息
为搜索与 AI 引用准备的稳定字段与命令。
- 安装命令
npx skills add https://github.com/hieutrtr/ai1-skills --skill e2e-testing- 分类
- </>开发工具
- 认证
- ✓
- 收录时间
- 2026-02-05
- 更新时间
- 2026-02-18
快速解答
什么是 e2e-testing?
与 Playwright 一起对全栈 Python/React 应用程序进行端到端测试模式。在为完整的用户工作流程(登录、CRUD、导航)、关键路径回归测试或跨浏览器验证编写 E2E 测试时使用。涵盖测试结构、页面对象模型、选择器策略(data-testid > 角色 > 标签)、等待策略、身份验证状态重用、测试数据管理和 CI 集成。不涵盖单元测试或组件测试(使用 pytest-patterns 或 React-testing-patterns)。 来源:hieutrtr/ai1-skills。
如何安装 e2e-testing?
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/hieutrtr/ai1-skills --skill e2e-testing 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用
这个 Skill 的源码在哪?
https://github.com/hieutrtr/ai1-skills
详情
- 分类
- </>开发工具
- 来源
- skills.sh
- 收录时间
- 2026-02-05