vue-integration-testing

Run Vue 3 UI tests with Vitest Browser mode using Page Objects and createTestApp helpers.

15|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/alexanderop/workoutTracker --skill vue-integration-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vue-integration-testing
Source: https://github.com/alexanderop/workoutTracker/tree/main/.claude/skills/vue-integration-testing
Command: npx skills add https://github.com/alexanderop/workoutTracker --skill vue-integration-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables engineers to verify complete user flows in Vue 3 applications via Vitest Browser mode, ensuring tests exercise real browser behavior across routing, components, and multi-step workflows.

Core Features & Use Cases

  • End-to-end UI validation: Validate user journeys across views and components using a real browser.
  • Page Object pattern: Structure tests with reusable page objects (helpers like createTestApp) for maintainable suites.
  • Test isolation: Provide setup/cleanup helpers to reset state between tests and prevent flakiness.

Quick Start

Run integration tests with Vitest in browser mode using the provided helpers. For example, install dependencies, then execute pnpm test to run all integration tests and pnpm test:headed for visible debugging, and use the Page Objects to model common user flows.

Frequently Asked Questions about vue-integration-testing

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

FAQPage Schema
How do I run Vue 3 integration tests in a real browser using Vitest?

You can run Vue 3 integration tests in a real browser using Vitest Browser mode with Playwright. This approach validates complete user flows, routing, and multi-step workflows using the createTestApp helper and Page Objects.

What is the Page Object pattern for Vue UI testing?

The Page Object pattern structures Vue UI tests by modeling user flows with reusable helpers like createTestApp. This separates test logic from component interaction, ensuring maintainable and reliable integration test suites.

How do I prevent flaky test results in Vue integration testing?

To prevent flaky test results in Vue integration testing, use provided setup and cleanup helpers to reset state between tests. This ensures test isolation and reliable execution across multi-step user flows in the browser.

Does Vitest browser mode support testing Vue components with routing?

Yes, Vitest browser mode supports testing Vue components with routing. It enables engineers to verify complete user journeys across views and components by exercising real browser behavior for multi-step workflows.

What's the best way to debug Vue integration tests in Vitest?

The best way to debug Vue integration tests in Vitest is by running them in headed mode. Executing pnpm test:headed launches the browser visibly, allowing you to watch and debug interactions modeled by your Page Objects.

Do I need Playwright to run Vue integration tests with Vitest?

Yes, you need Playwright browser mode and Vitest 4 to run Vue integration tests using this approach. These dependencies provide the real browser environment required to execute and validate multi-step user flows.