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★ 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'snode). - Windows (also Linux or macOS):
npm install -g @playwright/cli.
- macOS (Homebrew):
- 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
--profilewith a space, not=, so bash expands~. In PowerShell use$HOME/.playwright/profiles/<client>.
Non-negotiable rules
Safety
- 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).
- Never read session secrets into the conversation: no
cookie-list,cookie-get,localstorage-list,localstorage-get,sessionstorage-list,sessionstorage-get,request-headersorresponse-headers, and noevalthat readsdocument.cookie,localStorageorsessionStorage. Redirectrequest <n>to a file (it prints Cookie and Authorization), and redact tokens inrequestsURLs before quoting them. - Start
tracing-startandvideo-startonly after the login is verified. A trace recorded during login keeps the credentials POST in its network log. - The persistent profile is the only session store: never use
state-save,state-load,.auth/*.jsonorattach --extension, and never rundelete-dataunless the user asks (it wipes the profile and its session). - Staging or QA only, no write actions on production. After every
open,goto, redirect and new tab, checklocation.hostagainst the hosts approved in the plan; if it is not on that list, stop and ask. - 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).
- 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
- Use
-s=<session>on every command, same name for the whole run. - Keep output on disk. Never print a full snapshot or page HTML (10K to 35K
tokens); use
findoreval --raw(under 1K), orsnapshot --filenameand grep the file. Screenshots always go to a file with--filename; never read them back unless the image itself has to be inspected. - 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. - Real refs only: get them from
findorsnapshot. 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
Установить 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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic