swe-developing-e2e-test-with-playwright

Standardize Playwright end-to-end test authoring with accessibility-first selectors and web-first assertions.

3|1|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/wahidyankf/ose-primer --skill swe-developing-e2e-test-with-playwright
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swe-developing-e2e-test-with-playwright
Source: https://github.com/wahidyankf/ose-primer/tree/main/.claude/skills/swe-developing-e2e-test-with-playwright
Command: npx skills add https://github.com/wahidyankf/ose-primer --skill swe-developing-e2e-test-with-playwright

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AI agents authoring Playwright end-to-end tests frequently produce inconsistent, flaky, and non-compliant test suites that deviate from established best practices, leading to high maintenance overhead and unreliable test results that fail to catch regressions.

Core Features & Use Cases

  • Standardized Test Structure: Provides clear guidelines for organizing test files, page objects, and fixtures to ensure consistency across test suites.
  • Best Practice Enforcement: Outlines accessibility-first selectors, web-first assertions, and common anti-patterns to avoid to reduce test flakiness and improve maintainability.
  • Use Case: A software engineering agent writing E2E tests for a polyglot monorepo's frontend applications can use these standards to create reliable, maintainable test suites that align with the repository's governance requirements.

Quick Start

Use the swe-developing-e2e-test-with-playwright skill to write a new Playwright E2E test for the user login flow that follows accessibility-first selector and web-first assertion standards.

Frequently Asked Questions about swe-developing-e2e-test-with-playwright

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

FAQPage Schema
How do I write reliable Playwright E2E tests that do not flake?

Reliable Playwright E2E tests require web-first assertions and accessibility-first selectors to wait for elements properly. Standardizing test organization and avoiding common anti-patterns significantly reduces test flakiness and maintenance overhead.

What is the page object model in Playwright test automation?

The page object model in Playwright test automation organizes test files and fixtures to separate UI interactions from test logic. This structural standard ensures consistency across test suites and improves maintainability for complex web applications.

Why should I use accessibility-first selectors in Playwright E2E testing?

Accessibility-first selectors in Playwright E2E testing target elements by semantic attributes like roles and labels. This strategy aligns with accessibility guidelines and creates resilient tests that do not break when visual styles or DOM structures change.

How do I standardize Playwright test configuration for a monorepo?

Standardizing Playwright test configuration for a monorepo involves setting consistent test organization, shared fixtures, and governance requirements. This ensures maintainable end-to-end test suites that align with repository standards across different frontend applications.

What are common Playwright anti-patterns that cause flaky test suites?

Common Playwright anti-patterns causing flaky test suites include using non-web-first assertions and relying on CSS selectors instead of accessibility-first locators. Eliminating these deviations enforces consistent best practices and catches regressions reliably.

Can I use Playwright web-first assertions for end-to-end testing of login flows?

Yes, you can use Playwright web-first assertions for end-to-end testing of login flows to automatically wait for expected states. Combined with accessibility-first selectors, this approach ensures reliable authentication tests without manual timeout configurations.