web-testing

Automate web testing with Playwright, Vitest, k6, and Lighthouse.

1|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill web-testing-thanh-apero
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: web-testing
Source: https://github.com/Thanh-apero/apero-kit-cli/tree/main/templates/skills/web-testing
Command: npx skills add https://github.com/Thanh-apero/apero-kit-cli --skill web-testing-thanh-apero

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, vitest, k6, lighthouse, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates web testing across various dimensions, saving time and ensuring the quality of web applications.

Core Features & Use Cases

  • End-to-End (E2E) Testing: Execute comprehensive tests that simulate real user interactions across different browsers.
  • Unit Testing: Validate individual components of your application for functionality and reliability.
  • Load Testing: Assess the performance of your application under heavy traffic conditions.
  • Use Case: Use this Skill to run a suite of tests on a web application to ensure that all features are working as expected, especially under load.

Quick Start

Run the following commands to execute a full suite of tests for your web application:

npx vitest run                    # Run unit tests
npx playwright test               # Run E2E tests
k6 run load-test.js               # Run load tests
npx @axe-core/cli https://example.com  # Run accessibility tests
npx lighthouse https://example.com     # Run performance tests

Frequently Asked Questions about web-testing

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

FAQPage Schema
How do I automate web testing for E2E, unit, and load tests together?

Automating web testing across E2E, unit, and load involves running targeted scripts with Playwright, Vitest, and k6 to validate application behavior. This approach simulates real user interactions and traffic to ensure reliability.

What is the best way to run performance and accessibility audits on my web application?

Running performance audits is best done using Lighthouse, while accessibility checks can be executed via axe-core. Automating these tools within your web testing suite ensures your application meets performance benchmarks and accessibility standards.

Can I use Playwright and Vitest in the same testing workflow?

Yes, you can use Playwright and Vitest together in the same workflow. Playwright handles end-to-end browser interactions, while Vitest validates individual components, allowing you to comprehensively test both UI flows and underlying logic.

Do I need k6 installed to assess load and performance testing?

Yes, k6 is required to execute load tests and assess application performance under heavy traffic. You must have the k6 dependency installed to run the specialized load-testing scripts provided by the automation process.

How does load testing with k6 simulate heavy traffic conditions?

Load testing with k6 simulates heavy traffic by executing specialized scripts that generate concurrent virtual users against your application endpoints. This process measures responsiveness and stability under simulated peak loads.