playwright-automation

Automate Playwright end-to-end tests for React micro frontends using data-testid selectors and Page Object Models.

1|3|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/vobbilis/aigile --skill playwright-automation-vobbilis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-automation
Source: https://github.com/vobbilis/aigile/tree/main/.github/skills/playwright-automation
Command: npx skills add https://github.com/vobbilis/aigile --skill playwright-automation-vobbilis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates end-to-end Playwright testing for React micro frontends by enforcing data-testid selectors, auto-waiting assertions, and Page Object Models.

Core Features & Use Cases

  • Data-testId strategy for stable selectors.
  • Page Object Model (POM) discipline for maintainable tests.
  • Auto-waiting assertions and deterministic tests with network interception.
  • API-based test data setup and component-level page objects for MFEs.
  • Use Case: validating cross-MFE navigation and shared state in a shell + MFEs app.

Quick Start

Install Playwright, configure your tests to use data-testid attributes, and start building page objects for your micro frontend architecture.

Frequently Asked Questions about playwright-automation

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

FAQPage Schema
How do I make Playwright tests stable for React micro frontends?

Make Playwright tests stable by enforcing data-testid selectors, auto-waiting assertions, and Page Object Models. This approach isolates components and ensures deterministic test runs across single-page applications with multiple micro frontends and shell integrations.

Why use data-testid selectors in Playwright e2e testing?

Use data-testid selectors in Playwright e2e testing to maintain stable selectors that do not break when CSS classes or DOM structure change. This strategy enforces selector stability and predictable CI runs across your React application.

How do I structure Page Object Models for micro frontends in Playwright?

Structure Page Object Models by building component-level test objects for each micro frontend. This discipline maintains separation between MFEs and validates cross-MFE navigation and shared state within shell integrations.

Can I use API mocking and network interception for deterministic Playwright tests?

Use API mocking and network interception in Playwright to create deterministic tests. Combine this with API-based test data setup and auto-waiting assertions to isolate tests from external dependencies and ensure predictable CI runs.

What is the best way to test shared state across shell and MFE integrations?

The best way to test shared state across shell and MFE integrations is using component-level Page Object Models and data-testid selectors. This validates cross-MFE navigation and enforces test isolation in single-page applications.

Do I need auto-waiting assertions to prevent flaky Playwright tests?

Use auto-waiting assertions to prevent flaky Playwright tests by ensuring elements are ready before interacting. This satisfies strict testing guidelines for predictable CI runs and deterministic e2e testing outcomes.