E2E Test Writer for Openclaw

A high-efficiency tool that generates Playwright end-to-end tests by analyzing your source code or live URLs.

lxgicstudios
v1.0.0
Jan 28, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install e2e-writer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install e2e-writer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is E2E Test Writer?

The E2E Test Writer is designed to solve the common developer bottleneck of writing repetitive end-to-end tests. By analyzing component files or live URLs, it intelligently identifies user flows, interactive selectors, and necessary assertions to build comprehensive test suites. As a key utility within the Openclaw Skills ecosystem, it allows teams to achieve high test coverage without the manual overhead of writing boilerplate Playwright code.

E2E Test Writer Use Cases

  • Implementing end-to-end testing on existing projects that currently lack coverage.
  • Generating automated test scripts for new features immediately after development.
  • Creating regression suites to ensure critical user paths like login and checkout remain stable.
  • Supporting QA teams by rapidly scaffolding complex test scenarios for web applications.

How E2E Test Writer Works

  1. The tool takes a file path to a component or a specific website URL as input.
  2. It parses the source code or fetches the DOM structure to identify buttons, inputs, and navigation elements.
  3. The system maps out logical user interactions and edge cases based on the discovered elements.
  4. It generates a ready-to-run Playwright .spec.ts file containing full test logic and assertions.

E2E Test Writer Setup

This tool requires Node.js 18 or higher and does not require a local installation. You can run it directly using npx to integrate it into your development environment or Openclaw Skills workflow.

# Example: Generate tests for a specific component
npx ai-e2e-gen src/pages/Login.tsx

# Example: Generate tests from a live URL
npx ai-e2e-gen https://myapp.com/signup

E2E Test Writer Data Schema & Taxonomy

The skill produces standardized test artifacts and follows a clear output structure:

Artifact Format Description
Test Suite .spec.ts A complete Playwright specification file ready for execution.
Selectors String/CSS Auto-detected selectors based on component attributes or DOM properties.
Flow Logic Async TS Logic handling form submissions, navigation, and asynchronous state changes.

E2E Test Writer Advanced Features

  • Support for wildcard file patterns to generate tests for entire directories at once.
  • Intelligent detection of error states and edge cases beyond standard happy paths.
  • Zero-configuration execution making it ideal for integration into Openclaw Skills automated pipelines.
  • Context-aware selector generation that prioritizes stability and maintainability.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*