vc-web-testing

Automates web testing with Playwright, Vitest, and k6 across unit, E2E, load, security, and accessibility layers.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/HyuseCS/project-c --skill vc-web-testing-hyusecs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vc-web-testing
Source: https://github.com/HyuseCS/project-c/tree/main/.claude/skills/vc-web-testing
Command: npx skills add https://github.com/HyuseCS/project-c --skill vc-web-testing-hyusecs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Building and maintaining a comprehensive web test suite requires expertise across many tools and testing disciplines. This Skill consolidates unit, integration, E2E, load, security, visual regression, and accessibility testing into one guided workflow with ready-made configs, scripts, and checklists. ## Core Features & Use Cases - Multi-Layer Test Automation: Covers Vitest unit tests, Playwright E2E and component tests, k6 load tests, axe-core accessibility audits, and OWASP security checks. - Project Scaffolding & Result Analysis: Includes scripts to initialize a best-practice Playwright setup and to parse Playwright, Vitest, and JUnit results into unified summaries. - Strategy & Checklists: Provides testing pyramid/trophy/honeycomb strategy guidance, flakiness mitigation patterns, CI/CD workflow templates, and pre-release checklists. - Use Case: A team shipping a React SPA can scaffold Playwright with auth fixtures, add axe-core accessibility gates, run k6 load tests against staging, and merge sharded CI reports before release. ## Quick Start Ask the assistant to set up Playwright E2E tests with authentication fixtures and CI sharding for your web application.

Frequently Asked Questions about vc-web-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Playwright E2E tests for a web app?

Run the init-playwright script to generate a best-practice setup including playwright.config.ts, authentication fixtures, example tests, and global setup. It supports an optional component testing configuration via the --ct flag.

How do I combine Playwright and Vitest test results into one report?

Use the analyze-test-results script with --playwright and --vitest flags pointing to JSON result files. It outputs a unified summary in text, JSON, or Markdown, including pass rates, failures, and flaky test counts.

Playwright vs Vitest browser mode for component testing?

Playwright component testing runs real browsers for cross-browser and visual verification, while Vitest browser mode is faster for logic-focused tests. Choose Playwright CT when CSS, layout, or multi-browser fidelity matters.

How do I test accessibility with Playwright and axe-core?

Integrate @axe-core/playwright by creating an AxeBuilder instance with the page object and calling analyze(). Assert that results.violations is empty, and filter by WCAG tags like wcag2aa for targeted compliance checks.

Why are my Playwright tests flaky and how do I fix them?

Flakiness usually comes from hard waits, shared state between tests, or animation timing. Replace fixed sleeps with explicit waits or Playwright auto-waiting, isolate test data per worker, and disable CSS animations during test runs.

How do I run load tests with k6 against an authenticated API?

Use the k6 setup function to authenticate once and return a token, then pass it as a Bearer header in the default function. Define stages for ramp-up and thresholds like p95 latency under 500ms to gate performance.