gen-tests

Community

Auto-generate test scaffolding for custom elements.

Authorbennypowers
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Generate browser-based test scaffolding for custom elements using cem serve's chromeless demo UI with Playwright or Puppeteer.

Core Features & Use Cases

  • Read the target element's full manifest data to determine available demos and definitions for attributes, slots, events, and CSS parts.
  • Detect test environments and propose a Playwright-based setup (with optional Puppeteer compatibility) along with generating a Page Object Model structure.
  • Produce end-to-end test skeletons that exercise demos, attributes, slots, events, CSS custom properties, and CSS states.

Quick Start

Use the gen-tests skill to scaffold Playwright or Puppeteer tests for a target custom element.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: gen-tests
Download link: https://github.com/bennypowers/cem/archive/main.zip#gen-tests

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.