ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

e2e-testing

Playwright 与 Cypress E2E 测试规范,涵盖目录结构、Page Object、CI 集成、视口与设备配置。当用户提到 E2E、端到端测试、Playwright、Cypress、集成测试时自动激活。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bovinphang/e2e-testing
Or

What This Skill Does

This skill provides an enterprise-grade framework and architectural guidance for End-to-End (E2E) testing using industry-standard tools: Playwright and Cypress. It helps developers standardize their test suites by implementing the Page Object Model (POM), configuring cross-device testing, and ensuring CI/CD pipeline readiness. The skill acts as a comprehensive knowledge base for best practices, ensuring your automation suite remains maintainable, scalable, and resilient to UI changes.

Installation

To integrate this skill into your OpenClaw environment, run the following command in your terminal: clawhub install openclaw/skills/skills/bovinphang/e2e-testing

Use Cases

  • Project Initialization: Setting up the folder structure and baseline configuration for Playwright or Cypress projects.
  • Refactoring Test Code: Transitioning from messy, brittle selectors to a structured Page Object Model pattern to reduce maintenance overhead.
  • CI/CD Integration: Generating and configuring YAML workflows for GitHub Actions to execute automated tests on every pull request.
  • Device Strategy: Planning coverage across multiple viewports and browsers to ensure cross-device compatibility.
  • Error Handling: Implementing robust waiting strategies to replace unstable hardcoded delays, ensuring tests are deterministic and flake-free.

Example Prompts

  1. "I need a Page Object template for my Playwright login page using the data-testid pattern. Can you show me how to structure the class?"
  2. "How should I configure my GitHub Actions workflow to run Cypress tests in a headless environment and save failure screenshots?"
  3. "What are the best practices for handling authentication states in E2E tests so I don't have to log in manually for every single test case?"

Tips & Limitations

  • Selector Strategy: Always prioritize data-testid over CSS or XPath to decouple your tests from visual styling changes.
  • Avoid Flakiness: Never use setTimeout or fixed waits. Utilize the built-in auto-waiting mechanisms provided by Playwright and Cypress.
  • Scope: This skill is intended for E2E testing architecture. Do not use E2E tests to verify granular UI details like pixel-perfect spacing or colors; delegate those to visual regression or component tests.
  • Security: Never run E2E test suites against production databases. Always use a dedicated staging or mock environment to protect your user data.

Metadata

Stars4190
Views0
Updated2026-04-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bovinphang-e2e-testing": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#e2e#playwright#cypress#automation#testing
Safety Score: 4/5

Flags: code-execution