browser-testing
БесплатноБез исполняемых скриптовНе проверенWHEN authoring or repairing real-browser journeys or automated screenshot comparisons with the project's selected runner; NOT DOM-only tests, interactive…
от mintuz★ 38 звёзд на GitHubОб этом скилле
Author Reliable Real-Browser Regression Tests
Use the project's existing browser suite to assert observable behaviour across real navigation, cookies, authentication, popups, downloads and rendering. Reuse the browser runner already selected by the repository. Do not install another runner, optional query plugin or image engine merely to follow this skill. Playwright and Cypress examples below show concrete APIs, not a portable API. For another runner, inspect its installed version, project conventions and actual documentation/APIs; adapt the same behavioural rules without switching frameworks. Report unrun integrations as unverified, not as proof.
Scope and authority
tddowns RED–GREEN–REFACTOR. This skill supplies browser-specific assertions, fixtures and diagnostics; it does not replace failing-before/passing-after proof.- DOM-only component tests belong to
frontend-testingorreact-testing. jsdom does not prove cross-document redirects, real cookie delivery, downloads, tabs or painted layout. Mockingfetch,window.openor an auth callback cannot prove those boundaries either. - Interactive visual judgement belongs to
visual-feedback. Authoring an image comparison does not grant authority to approve its baseline or a design change. - The generated
verify-<project>recipe runs existing checks and records evidence. Maintaining that recipe belongs tomaintain-verification-skill, not to browser-suite repair. Requirement approval belongs to its named owner;acceptance-reviewassesses satisfaction against that authority.
Only change the authorised suite, fixtures and execution configuration. Discover actual scripts, configuration, installed runner/version, support commands, fixture ownership and baseline policy before proposing runnable code. For a scenario-only request, use the supplied facts and label code as proposed; never invent repository paths, helper APIs, credentials or execution results.
Define the boundary before the test
- Link the case to its agreed requirement and expected outcome. Name the real browser/server/service boundaries it must cross and any deliberate stand-ins.
- Reuse the suite's launch and readiness commands, test accounts, seed/reset fixtures and CI report conventions. A listening port alone is not readiness.
- Select a positive outcome and a discriminating failure. A successful click, optimistic input value or request being sent is not proof of persisted data.
- Keep relevant dependencies real. Seed data at an existing fixture seam when that is only a precondition; never bypass the sign-in, save, cookie or download boundary the case claims to verify. Record external services not exercised.
Isolate browser state and owned fixtures
Playwright Test's built-in page/context fixtures normally give each test a
fresh browser context. Inspect overrides and storageState: a fresh context can
still start authenticated. For a sign-in case, explicitly use empty storage
state and the disposable user's actual sign-in flow. For other cases, an existing
per-user auth fixture or Cypress cy.session is a precondition, not sign-in proof.
Never borrow an admin session to test an ordinary user's authentication.
Give each test its own record/account scope using existing factories and unique
identifiers. Per-worker accounts do not justify sharing a mutable record such as
project 42. Do not serialise independent workers to conceal shared-fixture races.
Use fixture teardown or try/finally to remove only records, contexts, popups
and scratch files created by that test, including after assertion failure.
Retain diagnostics outside scratch directories before cleanup.
In Cypress, preserve testIsolation and the existing per-test seed/reset tasks.
Validate cached sessions under the project's convention, visit the starting page
after session restoration, and reset server-side data independently of cookies.
Account for application-owned IndexedDB/service-worker state when relevant;
clearing cookies alone is not a complete fixture reset. Never wipe shared data.
Query meaning, wait for outcomes
Prefer actual roles and accessible names, then labels, then established stable
test IDs where semantics cannot identify the target. Scope to the intended row,
dialog or region. Do not invent accessible names: an unnamed status needs a
role query plus a text assertion, not a fictitious name. Avoid row positions,
generated classes and coordinates. Accessible queries are not an accessibility
audit or proof of keyboard/screen-reader compliance.
Use Playwright's locator actions and auto-retrying expect assertions, or
Cypress's retrying query/.should() chains. Let normal actionability checks run;
do not force a click to bypass an unexplained overlay or disabled control.
Keep actions out of retrying assertion callbacks and re-query after navigation
or a DOM replacement.
Replace sleeps, broad networkidle waits and polling loops wi
Установить browser-testing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл browser-testing?
WHEN authoring or repairing real-browser journeys or automated screenshot comparisons with the project's selected runner; NOT DOM-only tests, interactive visual judgement or verification-recipe maintenance; provides native-runner fixtures, assertions and visual-comparison guidance.
Как установить скилл browser-testing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл browser-testing запускает скрипты?
Нет, скилл состоит только из инструкций (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