Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

qa-functional-testing

БесплатноБез исполняемых скриптовНе проверен

Run functional and exploratory tests in a live browser with playwright-cli. Use for any functional verification, test-case execution, flow exploration on…

fugaziот fugazi★ 273 звезды на GitHub

Об этом скилле

QA Functional Testing

Primary method for functional testing in a browser. playwright-cli returns only the output of each command, and files go to disk instead of into the conversation. If playwright-cli cannot do the job, fall back to chrome-devtools-mcp.

If a playwright-cli skill is also loaded (this repository's or the one that ships with the CLI), the rules here take precedence for functional test runs. That skill documents state-save, cookie-get and printing snapshots, which are forbidden here.

Prerequisites

  • playwright-cli --version >= 0.1.24. Install it with one of:
    • macOS (Homebrew): brew install playwright-cli (pulls in Homebrew's node).
    • Windows (also Linux or macOS): npm install -g @playwright/cli.
  • Browser installed: playwright-cli install-browser chromium.
  • <evidence-root> is a folder outside the repository, agreed with the team (for example ~/Downloads).
  • Commands below use bash syntax (macOS, Linux, Git Bash on Windows). Pass --profile with a space, not =, so bash expands ~. In PowerShell use $HOME/.playwright/profiles/<client>.

Non-negotiable rules

Safety

  1. Never ask for or type a username, password, token, cookie, OTP or MFA code. The user signs in manually, so always launch headed with the client's persistent profile (step 2).
  2. Never read session secrets into the conversation: no cookie-list, cookie-get, localstorage-list, localstorage-get, sessionstorage-list, sessionstorage-get, request-headers or response-headers, and no eval that reads document.cookie, localStorage or sessionStorage. Redirect request <n> to a file (it prints Cookie and Authorization), and redact tokens in requests URLs before quoting them.
  3. Start tracing-start and video-start only after the login is verified. A trace recorded during login keeps the credentials POST in its network log.
  4. The persistent profile is the only session store: never use state-save, state-load, .auth/*.json or attach --extension, and never run delete-data unless the user asks (it wipes the profile and its session).
  5. Staging or QA only, no write actions on production. After every open, goto, redirect and new tab, check location.host against the hosts approved in the plan; if it is not on that list, stop and ask.
  6. Stop and ask the user before any step that creates a record or cannot be undone: adding to a cart or quote on a real account when not already approved, accepting Terms & Conditions, any Submit / Save that creates a record, and the final order submit (the user clicks Place Order themselves).
  7. Test data comes from the test case or the project's test data. Never invent personal data (phone, address, email), and take option choices from the test case, not from "first option on screen". If a required value is missing, stop and ask.

Run hygiene

  1. Use -s=<session> on every command, same name for the whole run.
  2. Keep output on disk. Never print a full snapshot or page HTML (10K to 35K tokens); use find or eval --raw (under 1K), or snapshot --filename and grep the file. Screenshots always go to a file with --filename; never read them back unless the image itself has to be inspected.
  3. Run every command from the evidence folder. The CLI writes a .playwright-cli/ folder into the current directory; keep it out of the repository and of any shared working folder.
  4. Real refs only: get them from find or snapshot. Never invent a ref.

Procedure

1. Plan

Propose and wait for approval:

  • URL and environment.
  • Allowed hosts: the app's staging/QA host plus any provider the flow hands off to (identity provider, payment sandbox).
  • Scope and acceptance criteria.
  • Test data, with no secrets.
  • Device or viewport, if the case is mobile.
  • Evidence to capture.
  • Irreversible or record-creating steps, and where the run will stop.

2. Session and login

mkdir -p <evidence-root>/<PROJECT>/<Evidence or Ticket>/{evidence,tmp}
cd <evidence-root>/<PROJECT>/<Evidence or Ticket>
S="-s=<session>"
playwright-cli $S open <URL> --headed --persistent \
  --profile ~/.playwright/profiles/<client>

For a mobile case add --device "iPhone 15" to open. Device names are Playwright's and case-sensitive ("iphone 15" fails with Unknown device).

If the page needs authentication, open the login page and ask the user to sign in. Wait for their "login ready", then verify host and page:

playwright-cli $S eval "() => ({host: location.host, url: location.pathname, title: document.title})" --raw

The profile keeps the session between runs; if a page redirects to login, ask again.

3. Navigation and inspection

playwright-cli $S goto <URL>
playwright-cli $S eval "() => location.host" --raw        # must be an allowed host
playwright-cli $S find "Checkout" --max-results 3
playwright-cli $S find --regex
Полный SKILL.md на GitHub

Установить qa-functional-testing в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл qa-functional-testing?

Run functional and exploratory tests in a live browser with playwright-cli. Use for any functional verification, test-case execution, flow exploration on staging or QA, checkout or form flow, or bug evidence capture (screenshots, console, network) with a manual login. Not for authoring @playwright/test suites or for performance or accessibility audits. Keywords: functional testing, exploratory testing, test case execution, bug evidence.

Как установить скилл qa-functional-testing?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл qa-functional-testing запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить qa-functional-testing с