Skip to content
Development
Skill

/playwright

E2E тестирование UI с Playwright. Запуск, создание тестов, анализ результатов.

From plugin
claude-code-starter
19515 skills5 agents20 commands

Claude Code

$ npx -y skills add alexeykrol/claude-code-starter --skill playwright --agent claude-code

SKILL.md

playwright.SKILL.md
name: playwright
description: "E2E тестирование UI с Playwright. Запуск, создание тестов, анализ результатов."
paths:
  - "src/**/*.tsx"
  - "src/**/*.jsx"
  - "src/**/*.vue"
  - "src/**/*.svelte"
  - "pages/**/*"
  - "app/**/*"
  - "tests/e2e/**/*"
  - "e2e/**/*"
allowed-tools: Read Edit Write Glob Grep Bash
disable-model-invocation: true

Skill: Playwright E2E Testing

Проверка окружения

# Проверить установлен ли Playwright
npx playwright --version 2>/dev/null || echo "Playwright not installed"

Если не установлен:

npm install -D @playwright/test
npx playwright install chromium

Запуск существующих тестов

npx playwright test

С UI отчётом:

npx playwright test --reporter=html

Создание нового теста

При создании E2E теста:

1. Определить сценарий (user flow) 2. Создать файл в `tests/e2e/` или `e2e/` 3. Использовать паттерн:

import { test, expect } from '@playwright/test';

test('описание сценария', async ({ page }) => {
  await page.goto('/');
  // ... actions
  await expect(page.locator('selector')).toBeVisible();
});

Когда использовать

  • После изменений UI-компонентов
  • После изменений роутинга
  • После изменений форм и интерактивных элементов
  • Перед production deploy (обязательно)

Анализ падений

При падении теста: 1. Показать скриншот ошибки (если есть в `test-results/`) 2. Показать trace (если включен) 3. Определить: баг в коде или устаревший тест 4. Предложить фикс

Read more
@alexeykrol
Ships withclaude-code-starter

Claude Code Starter — это готовая управляющая среда для проектов, в которых основной рабочий агент — Claude Code.

19515 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
195
Star history of alexeykrol/claude-code-starter on GitHub, a chart by star-history.com

Other skills on claude-code-starter.

db-migrate

db-migrate

Миграция схемы базы данных: SQLite → PostgreSQL/Supabase. Генерация SQL, проверка совместимости.

housekeeping

housekeeping

Фоновое обслуживание проекта: актуальность README, CHANGELOG, версии, .gitignore, метафайлов.

save-dialog

save-dialog

Сохранить JSONL текущей сессии Claude Code в .claude/dialogs/. Триггеры: /save-dialog, "сохрани диалог", "архив диалога".

start

start

Инициализация рабочей сессии. Построить адекватную модель проекта, заземлить её в код, доложить с глубиной по запросу.

testing

testing

Запуск тестов проекта: unit, integration. Определение типа проекта и выбор стратегии.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about playwright.

Which coding agents can use playwright?
playwright installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.