← 返回列表
全部 Skill›工具 Tools›e2e-cucumber-playwright

e2e-cucumber-playwright

作者 @langgenius · 语言 en
Use when writing, changing, or reviewing Cucumber and Playwright tests under `e2e/`, including feature files, step definitions, support code, scenario tags, locators, and assertions. Do not use for Vitest, React Testing Library, backend tests, or generic browser automation outside the E2E suite.
工具 Tools生产力工具通用访问网络待翻译
最近源活动
2026-11-21 21:26
检测 SKILL.md 语言
en
星标 ★
161,844
分支 Fork
25,537
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

E2E Cucumber And Playwright

e2e/AGENTS.md owns the suite architecture, lifecycle, commands, tags, generated-client boundaries, fixtures, and cleanup contracts. Read the nearest feature-scoped AGENTS.md when one exists. This skill adds no parallel package policy.

Cucumber owns scenario and hook execution and reporting. Playwright provides browser automation, contexts, pages, locators, actions, assertions, request, and tracing APIs; protocol exceptions remain with the package-defined owner. Their timeout domains remain separate, and importing from @playwright/test does not make Playwright Test runner configuration, fixtures, or retries applicable to this suite.

Topic Routing

Read only the bundled reference required by the change:

  • Locator, assertion, isolation, or waiting decisions: [references/playwright-best-practices.md][playwright]
  • Scenario wording, step granularity, expressions, World state, hook visibility, or tag design: [references/cucumber-best-practices.md][cucumber]

Check current official Playwright or Cucumber documentation before introducing a framework pattern that local code and references do not already establish.

Workflow

  1. Add E2E coverage only for a critical user journey with a cross-boundary outcome that cheaper owner-level tests do not already prove.
  2. Identify the user-visible behavior and its feature owner. Start from real product defaults and actor roles; setup may establish preconditions but must not manufacture the opposite state to make the scenario meaningful.
  3. Read the target scenario, matching step definitions, and lifecycle files only when session or shared state matters.
  4. Reuse an existing step when wording and behavior match; add one coherent scenario or step when they do not.
  5. Keep browser actions and assertions at the public user boundary; keep setup, seed, polling, and cleanup at their package-defined owners.
  6. For changes, run the narrowest tagged scenario and package checks documented in e2e/AGENTS.md; broaden only for shared hooks, tags, or support changes.

For review requests, lead with reproducible correctness failures, flake sources, or demonstrated architecture drift. Report the behavior verified and any external-runtime, browser, or environment gap.

[cucumber]: references/cucumber-best-practices.md

[playwright]: references/playwright-best-practices.md

评论
Llanggenius
langgenius
langgenius/dify
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@langgenius
所属大类工具 Tools / 生产力工具
国内可用性通用
最近源活动2026-11-21 21:26
风险提示访问网络
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。