Vue Component & E2E Testing
Test Vue 3 apps with Playwright — component tests and end-to-end flows covering Vue Router navigation, reactive state, authentication, and network mocking with reliable, non-flaky patterns.
This skill sets up and writes Playwright tests for Vue 3: component tests and full E2E flows that exercise Vue Router navigation, reactive state changes, forms, and auth. It uses accessible locators, network interception/mocking, and auto-waiting to keep tests deterministic and fast in CI.
When to use
Use when testing Vue 3 apps with Playwright, writing E2E or component tests, covering router navigation and auth flows, or stabilizing flaky Vue tests with proper waiting and mocking.
Examples
Auth flow E2E
Login and protected route
Write a Playwright E2E test for a Vue app that logs in, asserts redirect to the dashboard, and checks a protected route redirects when logged out
Mocked API test
Intercept network
Create a Playwright test that intercepts the products API, returns a fixture, and asserts the Vue grid renders the mocked items with correct pricing