playwright-testing

Plan, generate, and heal Playwright tests for web applications.

1|Updated Nov 13, 2023
One-click install
npx skills add https://github.com/LeoTechPro/intTools --skill playwright-testing-leotechpro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-testing
Source: https://github.com/LeoTechPro/intTools/tree/main/codex/assets/codex-home/skills/playwright-testing
Command: npx skills add https://github.com/LeoTechPro/intTools --skill playwright-testing-leotechpro

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of planning, generating, and maintaining Playwright tests, reducing the effort required for web application testing.

Core Features & Use Cases

  • Test Planning: Define test scenarios, steps, and expected outcomes for Playwright tests.
  • Test Generation: Create Playwright test files based on defined scenarios, utilizing codegen when necessary.
  • Test Healing: Debug and fix flaky or failing Playwright tests by identifying root causes and applying resilient selectors and assertions.
  • Use Case: When a new feature is developed, use this Skill to generate a comprehensive suite of Playwright tests to ensure its quality and stability.

Quick Start

Use the playwright-testing skill to generate Playwright tests for the login page at 'https://example.com/login'.

Frequently Asked Questions about playwright-testing

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

FAQPage Schema
How do I generate Playwright tests for my web application?

You can generate Playwright tests by defining test scenarios, steps, and expected outcomes, which the system uses to create test files, utilizing codegen when necessary. This streamlines test creation for web applications.

What is the best way to fix flaky Playwright tests?

To fix flaky Playwright tests, the test healing process identifies root causes and applies resilient selectors and assertions. This ensures your e2e tests remain stable and reliable over time.

Do I need Node.js installed to run Playwright test generation?

Yes, you need Node.js installed. The Playwright test generation and execution processes require a Node.js environment and the Playwright CLI to function correctly.

Can I plan test scenarios before writing Playwright test code?

Yes, you can plan test scenarios before writing code. The test planning feature allows you to define test scenarios, steps, and expected outcomes for Playwright tests prior to code generation.

Why does my Playwright test suite need resilient selectors?

Resilient selectors are needed to debug and fix failing Playwright tests. They prevent tests from breaking easily during web application updates, ensuring long-term stability.

Does Playwright test automation support defining expected outcomes?

Yes, Playwright test automation supports defining expected outcomes. When planning test scenarios, you explicitly define the expected outcomes to guide the generation of accurate test code.