e2e-testing

Provides Playwright E2E testing patterns including Page Object Model and CI/CD integration.

Updated May 24, 2023
One-click install
npx skills add https://github.com/Kimjiman/basic-arch --skill e2e-testing-kimjiman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: e2e-testing
Source: https://github.com/Kimjiman/basic-arch/tree/main/.claude/skills/e2e-testing
Command: npx skills add https://github.com/Kimjiman/basic-arch --skill e2e-testing-kimjiman

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to building robust, maintainable, and efficient End-to-End (E2E) tests using Playwright, addressing common challenges in test automation.

Core Features & Use Cases

  • Test Structure & Organization: Implement effective file organization and test structuring.
  • Page Object Model (POM): Utilize the POM design pattern for maintainable test code.
  • Configuration & CI/CD: Configure Playwright for various environments and integrate with CI/CD pipelines.
  • Flaky Test Strategies: Employ techniques to identify, manage, and fix flaky tests.
  • Artifact Management: Configure and manage test artifacts like screenshots, traces, and videos.
  • Specialized Testing: Includes patterns for wallet/Web3 and financial/critical flow testing.

Quick Start

Use the e2e-testing skill to set up a new Playwright project with the provided configuration and page object model examples.

Frequently Asked Questions about e2e-testing

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

FAQPage Schema
How do I structure Playwright E2E tests using the Page Object Model?

Playwright E2E tests use the Page Object Model pattern to encapsulate page interactions, ensuring test code remains maintainable and organized as your suite grows. This skill provides POM examples and file structuring patterns to get started.

How do I configure Playwright for CI/CD pipelines?

Configuring Playwright for CI/CD involves setting up environment-specific configurations and managing artifacts like screenshots, traces, and videos. This skill provides patterns for integrating Playwright into CI/CD pipelines to automate test execution.

What strategies fix flaky E2E tests in Playwright?

Flaky E2E tests are fixed by employing specific identification, management, and resolution strategies. This skill addresses flaky test challenges with techniques to build stable and fast test suites for web applications.

Do I need TypeScript to use these Playwright testing patterns?

Yes, understanding TypeScript is required to implement these Playwright testing patterns. You also need familiarity with the Playwright API to effectively apply the provided configurations and Page Object Model examples.

Does this include E2E testing patterns for Web3 wallets?

Yes, this includes specialized E2E testing patterns for wallet/Web3 and financial or critical flow testing. These patterns address the unique challenges of automating and validating complex web3 application interactions.