e2e-flow
БесплатноБез исполняемых скриптовНе проверенCheck whether the branch changes a user flow the e2e suites walk, before a PR is opened: compare the diff against the existing cases in `e2e/` and…
от lablup★ 137 звёзд на GitHubОб этом скилле
E2E flow
A PR that changes a flow the e2e suites cover states the new flow; it does not run it. Running drafts, adding their assertions and cleanup is the nightly automation's job.
1. Detect
- Base. The stack parent for a stacked branch (
gh stack view), elsemain. Diff withgit diff $(git merge-base <base> HEAD)..HEAD. - Skip without questions when the diff cannot change what a user does to
finish a task: a refactor that renders the same, styling, copy or a
relabel, i18n key plumbing, schema, tests, docs, generated files. Go to
section 3 with
Result: no flow changeand the one-lineReason. - Find the cases that walk the changed screens. Grep
e2e/ande2e-agent/for:- the changed route paths (
react/src/routes.tsx,navigate(, links); - the visible English labels of changed UI — resolve each i18n key in the
diff through
resources/i18n/en.json(BUI:packages/backend.ai-ui/src/locale/en.json) and grep the value; - changed or removed
data-testids.
- the changed route paths (
- Compare. Read each matched
test(...)step by step and decide whether those steps still complete the flow after the change. It is a flow change when a field becomes required, a step is added, removed or reordered, a confirmation appears, disappears or changes kind, or a route or entry point moves. A changed label a step clicks by text is not, unless the step can no longer find it. - No matching case and the change still meets the criteria (a new page, wizard or entry point) is a new flow; otherwise it is no flow change.
2. Decide
No flow change → section 3.
Flow change or new flow (non-interactive: section 4 instead):
Tell the user which flow changed:
<spec path> › <test name>and the concrete step difference (old step → new step). For a new flow, say what the user can now do and where it starts.For a flow change, ask with
AskUserQuestion: "Is this change intended?" (Yes/No). No → stop: do not open the PR, report it as a likely regression with the step difference, and record nothing (section 5), so the hook keeps blocking until the fix moves HEAD.Draft the new flow yourself from the diff and the old test's steps, then ask with
AskUserQuestionwhether to add it:Use the proposed flow (Recommended), with the numbered steps in the option'spreview— and, when a Playwright spec covers the flow, the spec file that will be ported and deleted (below);Don't add a flow.
The built-in "Other" takes a flow the user types. If they want to rework the proposal at length in chat, wait for that message.
Don't add → ask why with
AskUserQuestion:Temporary / behind a flag,Covered in another PR,Not worth an e2e flow(plus Other).Add → write the draft (below), show the written test to the user, then commit it on the branch.
The draft test
Update the e2e-agent/ test that covers the flow; otherwise add
e2e-agent/<part>/<page>/<flow>.e2e.ts. The part and page folders are the
ones e2e/ uses (folder rule in e2e/README.md): admin/ for the admin
console (/admin/*), project-admin/ for /project/:projectName/admin/*,
project/ for the user console, common/ for auth, config.toml behaviour
and plugins; the page is the first route segment after the scope. The part
decides which server the nightly run uses (E2E_PART, e2e/e2e-parts.ts):
a file outside these folders (the root, or an old e2e-agent/<feature>/
path) still runs, in the user part on the user server, so never put one
there. Import e2e-agent/utils/ by the relative path from the file's folder
(../../utils/... from <part>/<page>/).
A Playwright spec in e2e/ covers the flow → port it, then delete it,
whether or not an e2e-agent/ test already covers the flow, so the old
steps never run after the merge. Port the whole spec file, not just the
changed test, into one e2e-agent/<part>/<page>/<same-stem>.e2e.ts (the
spec's own e2e/<part>/<page>/ folders):
- each
test(...)becomes a draft test with the same name, its steps rewritten as the user scenario they walk, inagent.actsentences only; the changed test gets the new flow, the others keep their current flow; a test whose flow ane2e-agent/test already walks is merged into that test instead of duplicated; - drop everything selector-based: locators,
expects, fixtures, waits, test data setup and teardown. The automation adds what it needs; git rmthe spec file in the same commit. Keep shared helpers undere2e/utils/that other specs still import.
import { test } from "@e2e-dev/web";
// ported from: e2e/project/session/session-creation.spec.ts › <test name>
test(
"the user launches an interactive session with a project",
{
session: "admin",
tags: ["draft"],
skip: "draft: act-only flow from #<issue>, awaiting completion by automation",
},
async ({ app, agent
Установить e2e-flow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл e2e-flow?
Check whether the branch changes a user flow the e2e suites walk, before a PR is opened: compare the diff against the existing cases in `e2e/` and `e2e-agent/`, ask whether a changed flow is intended, and define the new flow as an act-only draft in `e2e-agent/` (defined only, never run in the PR). Runs before every `gh pr create` / `gh stack submit`; a PreToolUse hook (`.claude/scripts/require-e2e-flow.sh`) refuses both until this skill has recorded the branch's HEAD. Trigger on "PR 만들기 전 유저 플로우 확인", "유저 플로우 바뀌었는지 봐줘", "e2e flow check", "check user flows before the PR", or a hook denial that names this skill.
Как установить скилл e2e-flow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл e2e-flow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic