playwright-expert_skill

This skill provides expert Playwright guidance for setting up E2E tests, cross-browser runs, and reliable automation workflows.
  • TypeScript

60

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill cin12211/orca-q --skill playwright-expert

  • SKILL.md5.2 KB

Overview

This skill is a Playwright E2E testing expert focused on browser automation, cross-browser testing, visual regression, network interception, and CI integration. It helps set up Playwright, design robust tests for Vue and Electron apps, and troubleshoot flaky or environment-dependent failures. Use it to build maintainable E2E suites and integrate tests into CI pipelines for reliable releases.

How this skill works

I inspect your project for existing Playwright configuration, test files, and typical anti-patterns, then recommend a tailored setup and test architecture. I provide configuration snippets (playwright.config.ts), Page Object Model examples, network interception patterns, and visual regression test templates. I also suggest CI settings, retry/backoff strategies for flakiness, and a code-review checklist to keep tests stable and fast.

When to use it

  • Setting up Playwright for a new Vue, Nuxt, or Electron project
  • Adding cross-browser projects (chromium, firefox, webkit) and device presets
  • Debugging flaky tests or CI-only failures
  • Mocking network responses or simulating backend failures
  • Adding visual regression checks or screenshot baselines

Best practices

  • Use data-testid attributes and Page Object Model for stable selectors
  • Configure screenshot on failure, traces on first retry, and retries in CI
  • Avoid hardcoded waits; prefer toHave* assertions and waitForLoadState
  • Mock network requests for predictable test data and faster runs
  • Run tests in parallel locally but limit workers in CI to reduce flakiness

Example use cases

  • Create E2E tests for the login and dashboard flows of a Vue-based database editor
  • Intercept API calls to simulate PostgreSQL responses during UI tests
  • Add cross-browser coverage to ensure features work in Chromium, Firefox, and Safari
  • Implement visual regression for the main editor screen to detect UI regressions
  • Reduce flakiness by adding retries, traces, and targeted slow-timeouts for flaky network tests

FAQ

Add Playwright install and npx playwright install to your CI job, run npx playwright test with a headless browser, enable retries and a single worker in CI, and publish the HTML report or store traces/screenshots as artifacts.

When should I mock network requests vs using a real backend?

Mock when you need deterministic responses, faster tests, or to simulate edge cases. Use a real backend for end-to-end smoke tests that validate integration between UI and data store.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
playwright-expert skill by cin12211/orca-q | VeilStrat