Command Palette

Search for a command to run...

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

configure-ux-testing

БесплатноЗапускает вложенные скриптыНе проверен

UX testing: Playwright E2E, axe-core a11y, visual regression. Use when setting up E2E testing, screenshot assertions, browser automation, or a11y CI workflows.

laurigatesот laurigates★ 61 звезда на GitHub

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

/configure:ux-testing

Check and configure UX testing infrastructure with Playwright as the primary tool for E2E, accessibility, and visual regression testing.

When to Use This Skill

Use this skill when... Use another approach when...
Setting up Playwright E2E testing infrastructure for a project Running existing Playwright tests (use bun test:e2e or test-runner agent)
Adding accessibility testing with axe-core to a project Performing manual accessibility audits on a live site
Configuring visual regression testing with screenshot assertions Debugging a specific failing E2E test (use system-debugging agent)
Setting up Playwright CLI or MCP for Claude browser automation Writing individual test cases (use playwright-testing skill)
Creating CI/CD workflows for E2E and accessibility test execution Configuring unit or integration tests (use /configure:tests)

Context

  • Package manager: !find . -maxdepth 1 \( -name 'package.json' -o -name 'bun.lock' -o -name 'bun.lockb' \)
  • Playwright config: !find . -maxdepth 1 -name 'playwright.config.*'
  • Playwright installed: !find . -maxdepth 1 -name 'package.json' -exec grep -l '@playwright/test' {} +
  • Axe-core installed: !find . -maxdepth 1 -name 'package.json' -exec grep -l '@axe-core/playwright' {} +
  • E2E test dir: !find . -maxdepth 2 -type d \( -name 'e2e' -o -name 'tests' \)
  • Visual snapshots: !find . -maxdepth 4 -type d -name '__snapshots__'
  • MCP config: !find . -maxdepth 1 -name '.mcp.json'
  • CI workflow: !find . -path '*/.github/workflows/*' -maxdepth 3 -name 'e2e*'

UX Testing Stack:

  • Playwright - Cross-browser E2E testing (primary tool)
  • axe-core - Automated accessibility testing (WCAG compliance)
  • Playwright screenshots - Visual regression testing
  • Playwright CLI - Browser automation via CLI (preferred for AI agents with shell access)
  • Playwright MCP - Browser automation via MCP (fallback for sandboxed environments)

Parameters

Parse from command arguments:

  • --check-only: Report status without offering fixes
  • --fix: Apply all fixes automatically without prompting
  • --a11y: Focus on accessibility testing configuration
  • --visual: Focus on visual regression testing configuration

Execution

Execute this UX testing configuration check:

Step 1: Fetch latest tool versions

Verify latest versions before configuring:

  1. @playwright/test: Check playwright.dev or npm
  2. @axe-core/playwright: Check npm
  3. @playwright/cli: Check npm
  4. playwright MCP: Check npm

Use WebSearch or WebFetch to verify current versions.

Step 2: Detect existing UX testing infrastructure

Run the detection script to scan the project for Playwright / axe-core signals (package.json deps + config globs), the e2e dir / __snapshots__ / e2e workflow, and the playwright MCP-server entry:

bash "${CLAUDE_SKILL_DIR}/scripts/configure-ux-testing.sh" --home-dir "$HOME"

Parse STATUS= and the ISSUES: block from the output. The KEY=VALUE lines report PLAYWRIGHT_CONFIG, PLAYWRIGHT_DEP, AXE_CORE_DEP, E2E_DIR, VISUAL_SNAPSHOTS, E2E_WORKFLOW, PLAYWRIGHT_MCP, and the rollup PLAYWRIGHT_DETECTED / UX_SIGNALS_PRESENT.

Step 3: Generate compliance report

Print a formatted compliance report showing status for Playwright core, accessibility testing, visual regression, and MCP integration.

If --check-only is set, stop here.

For the compliance report format, see REFERENCE.md.

Step 4: Install dependencies (if --fix or user confirms)

# Core Playwright
bun add --dev @playwright/test

# Accessibility testing
bun add --dev @axe-core/playwright

# Install browsers
bunx playwright install

Step 5: Create Playwright configuration

Create playwright.config.ts with:

  • Desktop browser projects (Chromium, Firefox, WebKit)
  • Mobile viewport projects (Pixel 5, iPhone 13)
  • Dedicated a11y test project (Chromium only)
  • WebServer auto-start for local dev
  • Trace/screenshot/video on failure settings
  • JSON and JUnit reporters for CI

For the complete playwright.config.ts template, see REFERENCE.md.

Step 6: Create accessibility test helper

Create tests/e2e/helpers/a11y.ts with:

  • expectNoA11yViolations(page, options) - Assert no WCAG violations
  • getA11yReport(page, options) - Generate detailed a11y report
  • Configurable WCAG level (wcag2a, wcag2aa, wcag21aa, wcag22aa)
  • Rule include/exclude support
  • Formatted violation output

For the complete a11y helper code, see REFERENCE.md.

Step 7: Create example test files

Create example tests:

  1. tests/e2e/homepage.a11y.spec.ts - H
Полный SKILL.md на GitHub

Установить configure-ux-testing в Claude Code и Claude Desktop

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

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

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

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

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

Glob
Grep
Read
Write
Edit
Bash(bash ${CLAUDE_SKILL_DIR}/scripts/configure-ux-testing.sh *)
Bash(find *)
Bash(bun add *)
Bash(bunx playwright install *)
Bash(bunx playwright test *)
AskUserQuestion
TodoWrite
WebSearch
WebFetch

Вложенные файлы

REFERENCE.mdscripts/configure-ux-testing.sh

FAQ

Что делает скилл configure-ux-testing?

UX testing: Playwright E2E, axe-core a11y, visual regression. Use when setting up E2E testing, screenshot assertions, browser automation, or a11y CI workflows.

Как установить скилл configure-ux-testing?

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить configure-ux-testing с