К основному содержанию
скилл CX Codex

argent-qa-e2e — скилл для Claude Code: QA-регрессия e2e

Пишет повторяемые e2e-тесты регрессии по тест-кейсам, тикетам или критериям приёмки. Пригодится, когда ручной прогон нужно закрепить в автоматическом сценарии.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add software-mansion/argent --skill argent-qa-e2e -a claude-code
Открыть на GitHub

Что делает argent-qa-e2e

Скилл берёт тест-кейс, тикет или критерии приёмки и превращает их в YAML-сценарий, который проходит два раза подряд без правок. Внутри он опирается на argent-create-e2e как движок записи, а сам добавляет QA-контракт и условие завершения: первый шаг — launch:, каждый пункт требований закрыт жёсткой проверкой await:, assert: или просмотренным snapshot:, у каждой смены экрана есть подтверждение идентичности пункта назначения и готовность idle.

Перед записью скилл просит составить таблицу контракта: приложение, платформа, стартовое состояние, порядок действий, ожидаемые исходы и доказательства по каждому. Повторяемость обеспечивают два механизма фикстур — run: проигрывает отдельно записанный тест сброса или наполнения данными, script: запускает локальную подготовку или уборку. Если аккаунт грязный, скилл советует записать безопасный сброс либо нормализацию прямо в setup.

Поддерживаются iOS, Android, Chromium и Vega (Fire TV). На Vega нет touch-директив, потому что пульт управляет фокусом: навигацию записывают шагами tool: tv-remote, ввод — через tool: keyboard. Apple TV и Android TV не поддерживаются — там скилл отсылает к argent-tv-interact и просит сообщить об ограничении. Физические iPhone работают, но с оговорками: воспроизведение не привязывает телефон само, поэтому его udid передают как device (в CLI — --device) и держат устройство в состоянии connected; шаги pinch и rotate на нём падают.

Какие задачи решает

  • превратить критерии приёмки из тикета в исполняемый e2e-сценарий
  • закрепить ручной регрессионный прогон в автоматическом тесте
  • добиться одинакового результата двух запусков подряд без ручной уборки
  • отличить отсутствие элемента от неотрисованного экрана
  • проверить, что отмена не сохранила данные, а сохранение их записало

Примеры запросов агенту

  • напиши QA e2e тест по этому тикету: выбрать тёмную тему в настройках
  • сделай регрессионный e2e тест по критериям приёмки из задачи
  • запиши e2e сценарий для экрана настроек, с проверкой тёмной темы и снимком экрана

Как установить argent-qa-e2e

1Через Skills CLI (Vercel)

npx skills add software-mansion/argent --skill argent-qa-e2e -a claude-code

2Вручную: положить файлы

~/.claude/skills/argent-qa-e2e/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/argent-qa-e2e/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о argent-qa-e2e

Как установить argent-qa-e2e в Claude?

Одной командой: npx skills add software-mansion/argent --skill argent-qa-e2e -a claude-code. После этого скилл лежит в ~/.claude/skills/argent-qa-e2e/SKILL.md.

Что делает argent-qa-e2e?

Пишет повторяемые QA-тесты e2e по тест-кейсам, тикетам или критериям приёмки. Требует детерминированной подготовки данных, устойчивых селекторов и двух полных прогонов без изменений.

Какие платформы поддерживаются?

iOS, Android, Chromium и Vega (Fire TV). На Vega вместо touch-директив записываются шаги tool: tv-remote. Apple TV и Android TV не поддерживаются — для них скилл отсылает к argent-tv-interact.

Исходный текст

SKILL.md · Apache-2.0
---
name: argent-qa-e2e
description: Write repeatable QA regression e2e tests from test cases, tickets, or acceptance criteria. Use when the user asks to write, automate, or generate an e2e test or preserve an automated regression scenario, with deterministic setup, stable targets, executable structural or visual evidence, and two consecutive full passes. For one-off UI checks or replayable paths without acceptance criteria, use argent-test-ui-flow or argent-create-e2e. Supports iOS, Android, Chromium, and Vega (Fire TV), where recorded tv-remote steps replace touch directives. Apple TV and Android TV are unsupported; use argent-tv-interact there and report the limitation.
---

# Create a QA regression e2e test

Load `argent-create-e2e` as the authoring engine. Follow its required references for recorder syntax, selectors, polish, platform exceptions, and repair. This skill adds the QA contract and completion gate.

**Vega** supports every item below: `launch: { vega: ... }`, `await:`/`assert:` selectors, `snapshot:`, and `idle` all run there. Only the touch directives are missing, because Vega is remote-driven. Navigate with recorded `tool: tv-remote` steps and type with `tool: keyboard`, which leaves item 5 with nothing to govern. A D-pad path is relative to where focus already is, so gate every move with item 4's identity check rather than assuming the cursor landed. Read `argent-tv-interact` for focus reading and remote navigation.

**Apple TV and Android TV are out of scope.** The runner does not reject touch directives there, so they fail at the gesture layer instead of with authoring guidance. Use `argent-tv-interact` and report the limitation.

**Physical iPhones** run QA e2e tests, with three hardware limits: replay never auto-binds a phone, so pass its udid as `device` (CLI `--device`) and keep it `connected`; `pinch`/`rotate` steps fail there like the live tools, so drive the app's own zoom UI instead; the runner tree is the `describe` tree (same ids and roles), so a selector authored on a simulator can miss there. Read `argent-ios-device-interact` for the app-scoped contract before recording.

## Definition of done

A QA e2e test is complete only when:

1. The first step that is not `echo:` or `script:` is `launch:`. In-test setup proves a deterministic data baseline. Repeated runs do not accumulate artifacts or require manual cleanup.
2. The first walkthrough recorded every action and live structural check. Only the three documented polish insertions are unrecorded.
3. Every requirement maps to a hard `await:`, `assert:`, or reviewed `snapshot:`. Echoes and screenshots are not verdicts. A negative check needs the same stable selector established as visible earlier.
4. Every screen change has destination identity followed by `idle` readiness.
5. Targets satisfy the stable-selector and coordinate-fallback rules. QA keeps coordinates only for genuinely unlabeled targets. Vacuous on Vega, which has no coordinate targets.
6. The unchanged YAML passes twice with the same runner. Pass 1 starts with fresh mobile Argent services, and pass 2 follows immediately.

## 1. Define the test contract

Before touching the app, write a compact table. Restate it in the final report. Include:

- App, platform, and named start state.
- Ordered user actions.
- One row for each expected outcome, persistence rule, or absence claim.
- Stable executable evidence for each row.
- Required data and side effects.

Use structural checks for semantic state, snapshots for pixels, and both for mixed requirements. One behavioral scenario becomes one `qa-<area>-<behavior>` e2e test.

Do not invent a material value or weaken ambiguity. Choose the strongest UI-verifiable reading and report it. Ask when the choice changes test meaning.

Make repeated runs deterministic:

1. Inspect the required baseline without mutation.
2. If the account is dirty, record a safe reset or seed e2e test. Alternatively, include safe normalization in setup.
3. After setup navigation, echo the named baseline and hard-check it before the first scenario mutation. Use `assert:` or a destination `await:` that fully proves the baseline.
4. Prefer to restore the baseline at the end.

An e2e test has two fixture mechanisms:

- `run:` replays a separately recorded reset or seed e2e test.
- `script:` runs requested local setup or cleanup. Record it with `e2e-add-script` where it belongs in the walkthrough.

Ask before cleanup that creates or deletes meaningful user data outside the request.

### Compact example

Ticket: select Dark in Settings. Verify Dark is selected, Light is absent, and the screen renders in dark mode.

| Contract row          | Action                   | Evidence                                                                    | State effect          |
| --------------------- | ------------------------ | --------------------------------------------------------------------------- | --------------------- |
| Signed-in Home        | Launch                   | `await: { visible: { id: home-screen } }`, then `await: { idle: true }`     | Existing account      |
| Open Settings         | Tap `settings-tab`       | `await: { visible: { id: settings-screen } }`, then `await: { idle: true }` | None                  |
| Prove Light selected  | Inspect Settings         | `assert: { visible: { id: theme-light-selected } }`                         | Fails if already Dark |
| Prove Dark selected   | Tap `theme-dark-option`  | `await: { visible: { id: theme-dark-selected } }`                           | Theme becomes Dark    |
| Prove Light absent    | Inspect settled screen   | `assert: { hidden: { id: theme-light-selected } }`                          | None                  |
| Verify dark rendering | Inspect settled screen   | `snapshot: settings-dark`                                                   | None                  |
| Restore baseline      | Tap `theme-light-option` | `await: { visible: { id: theme-light-selected } }`                          | Next run starts clean |

The initial Light check establishes the selector used by the later `hidden` check. The final restore makes pass 2 independent.

## 2. Record the scenario

Follow `argent-create-e2e`'s start order and live-authoring cycle. Record each structural contract check when its state appears.

A snapshot has no recorder form. Inspect its stable state during the walkthrough, then add the planned snapshot during polish. If direct recovery changes state, re-record the affected behavior. A recovered walkthrough is not proof.

## 3. Make evidence discriminating

- **State change:** prove the new state and the old state's absence when both can otherwise match.
- **Cancel/persistence:** cross the commit boundary. After cancel or save, leave, re-enter, then verify the stored state: unchanged after cancel or updated after save.
- **Absence:** prove the containing screen and record the same stable selector as `visible`, then the action, then `hidden`. Do not add an unestablished `hidden` check only to strengthen a positive baseline. In a collection, viewport absence is not global absence. Use fixed seeded position, count, empty state, or other collection-wide evidence.
- **Overlays:** use the create-e2e [obscured-target procedure](../argent-create-e2e/references/reliability-and-recovery.md#obscured-targets-and-persistent-overlays).
- **Repeated controls:** prefer an id. Otherwise use YAML-only `within` with a stable container. Use `text.in` to prove rendered membership inside that container.
- **Dynamic content:** assert controlled state or stable app chrome. Use anchored structure for unavoidable dynamic values and disclose the dependency.
- **Visual state:** snapshot only a correct, settled, deterministic screen. Use full screen for global changes and `cropOn` for one component.

Never put acceptance evidence inside `when:`. Use `when:` only for optional setup that reconverges to the required path.

## 4. Finish and audit

Complete the create-e2e polish and blocking audit. Then:

1. Map every contract row to an executed action or hard check.
2. Build a navigation table with one row per screen change, naming both the identity gate and the readiness gate. A row missing either is a blocking defect.
3. Confirm setup and end state permit an immediate second run.

| Action             | Destination | Identity                  | Readiness |
| ------------------ | ----------- | ------------------------- | --------- |
| Tap `settings-tab` | Settings    | `settings-screen` visible | `idle`    |

The two are repaired differently. A missing identity check must be recorded live on the restored screen. A missing `idle` check is added in YAML, because `await: { idle: true }` has no recorder form and is one of `argent-create-e2e`'s three permitted polish insertions. Re-record any missing action or other structural check.

## 5. Prove two consecutive passes

After the last edit and audit, set the streak to zero:

1. Choose one runner for both passes. Use `e2e-execute` locally or `argent e2e run <name> --platform <platform>` for CI. Switching runners resets the streak.
2. Seed, review, and freeze snapshot baselines. Baseline updates do not count as passes.
3. Before mobile pass 1, recycle Argent services for this test's device: two warm passes are correlated evidence, because a fixed timing margin can pass twice simply because environment speed did not change. Scope `stop-all-simulator-servers` to `devices: [<device>]`. Never omit the scope: a bare call is the machine-wide sweep, and step 7 restarts this proof often enough to reap every other agent's devices repeatedly. Use the MCP call for `e2e-execute`, or `argent run stop-all-simulator-servers --devices <device>` from the CLI's install. The reset must not change app or account data. For Chromium, let the runner boot the declared app and omit `device`. Vega owns no recyclable Argent services, so the teardown is a no-op there and both passes are warm.
4. Run from the test's launch and setup without baseline-update mode. Count a pass only when `ok: true` and every acceptance check executed. A false `when:` can skip optional setup only. An errored step does not advance the streak, and the count mixes two kinds: read each reason. One that could not run (an unreadable tree under `idle`, an unresolvable `run:` target) is environment: fix it and rerun. **A failed `launch:` also scores `errored`, and it is a verdict about the app**; an app that no longer installs or starts is the regression this test exists to catch, so report it instead of rerunning.
5. Resolve every passing-step warning before completion. Also resolve recorded-wait warnings from `e2e-finish-recording`. Follow [Live waits and checks](../argent-create-e2e/references/live-authoring.md#live-waits-and-checks). For runner warnings, `await: { idle: true }` raises [six different warnings](../argent-create-e2e/references/e2e-yaml.md#idle-readiness), so read which one it is first. Two say the screen was moving. One says the wait ran out mid-hold and needs a larger `timeout:`. One says the tree stayed empty. One, **settled on the UI tree alone**, says the hierarchy did hold still and only the screenshot pairs were missing, so inspect the capture path rather than the app's rendering. One says the step ended with no evidence either way. Inspect the screen, disclose the cause, and verify that surrounding acceptance checks use stable elements rather than stillness. A [selector-less gesture](../argent-create-e2e/references/e2e-yaml.md#directives) (a coordinate `tap`/`long-press`/`swipe`, or a `pinch`/`rotate` with no `on:`) warns in a different shape: a tree-source outage left it unsettled, so it dispatched blind and the green says only that the gesture was sent. Restore the tree source, usually by relaunching the app so the instrumentation loads, and rerun. Accepting that warning needs an app that serves no tree, which cannot satisfy this contract anyway.
6. Run the same YAML again immediately with the same runner. Do not manually reset app or account data.
7. Reset the streak after any failure, edit, re-recording, baseline update, or state-changing manual recovery. Repair through `argent-create-e2e`, audit again, and restart with fresh services.

Finish only when the streak reaches two. If the intended runner is unavailable, report proof as blocked. If product behavior fails, keep the strong check and report the regression. Never weaken it to obtain green output.

Record the runner and fresh-service setup used.

## 6. Report

Report:

- E2E test name, path, platform, and CLI command.
- Contract rows mapped to actions and checks.
- Navigation table.
- Baseline setup, end-state restoration, and accepted data dependencies.
- Both pass results, runner, fresh-service setup, and resolved warnings.
- Snapshot scope, reviewed baseline status, and mismatch tolerance.
- Coordinate or raw-gesture exceptions.
- Remaining manual judgment or blocker.

© software-mansion · Apache-2.0 · software-mansion/argent

Похожие скиллы

Всё по теме «Тесты и QA» →
e2e tester-army Помогает писать, запускать и отлаживать сквозные тесты в веб- и мобильных проектах. Пригодится для проверки сценариев через Playwright или эмуляторы iOS и Android. CX Codex +1 1 200установок vitest-midscene-e2e web-infra-dev Скилл объединяет Vitest и Midscene для создания E2E-тестов на естественном языке под Web, Android и iOS. Помогает быстро развернуть бойлерплейт или наладить автотесты без селекторов. CX Codex +1 2 100установок maestro-e2e raphaelbarbosaqwerty Скилл для написания и отладки E2E-тестов на Maestro: логины, регистрация, навигация, диалоги разрешений. Работает с iOS, Android, Flutter, React Native и вебом. CX Codex +1 533установок dogfood callstack Организует исследовательское тестирование мобильных приложений на iOS и Android через agent-device. Находит баги интерфейса и ошибки сценариев в рантайме. CX Codex +1 11 300установок cypress-tap cypress-io Управляет запущенной сессией Cypress open через CLI без интерфейса. Помогает прогонять тесты, читать логи репортёра и проверять DOM прямо из чата с агентом. CX Codex +1 2 700установок e2e-playwright-testing Agent Skills Contributors Скилл для написания и разбора E2E-тестов на Playwright: локаторы, авторизация, формы, ассерты и конфиг для CI. CX Codex +1 796установок

Из того же набора19

Весь набор →
argent-lens Скилл для выбора визуальных вариантов интерфейса в нативном окне Argent Lens. Помогает сравнить несколько дизайнов кнопки или экрана на симуляторе. CX Codex +1 22 500установок argent-tv-interact Управляет ТВ-приложениями на Apple TV, Android TV и Fire TV через argent. Позволяет проверять фокус элементов, нажимать кнопки пульта D-pad, вводить текст и снимать скриншоты. CX Codex +1 20 900установок argent-settings-permissions Управляет системными разрешениями на iOS Simulator и Android без интерфейса настроек. Пригодится при автотестах для выдачи, сброса или запрета прав до запуска приложения. CX Codex +1 19 200установок argent-screen-recording Записывает видео экрана iOS-симулятора или Android-эмулятора в формате h264 mp4 с визуализацией касаний. Пригодится, когда нужно задокументировать поток взаимодействия, анимацию или поведение приложения. CX Codex +1 17 800установок argent-ios-device-setup Инструкция для агента по подготовке физического iPhone, подключённого кабелем к Mac, для автоматизации argent. Пригодится при отладке тестов на реальном устройстве. CX Codex +1 11 000установок argent-ios-device-interact Скилл управляет физическим iPhone через argent: запускает приложения, выполняет жесты и ждёт состояния интерфейса. Нужен для проверок на реальном устройстве. CX Codex +1 11 000установок argent-create-e2e Записывает, редактирует и воспроизводит сценарии сквозного тестирования Argent в формате YAML. Пригодится для проверки интерфейса на физических iPhone или эмуляторах. CX Codex +1 979установок Argent Argent связывает агента с симуляторами iOS, Android, ТВ-приставками и Electron. Позволяет нажимать кнопки, снимать логи и профилировать код прямо из чата. CX Codex +1 ★ 3 084звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой