playwright-config-generator
Generate Playwright configuration files for cross-browser E2E testing. Triggers on "create playwright config", "generate playwright configuration", "playwright setup", "browser testing config".
When & Why to Use This Skill
This Claude skill automates the generation of Playwright configuration files, enabling developers to quickly set up comprehensive cross-browser E2E testing environments. By providing optimized TypeScript templates and pre-configured browser projects, it streamlines the initial testing setup and ensures best practices for web application quality assurance.
Use Cases
- Initial Project Setup: Rapidly bootstrap a new web project with a production-ready playwright.config.ts file to start writing E2E tests immediately.
- Cross-Browser Compatibility Testing: Automatically configure multiple browser projects (Chromium, Firefox, WebKit) to ensure UI consistency across different rendering engines.
- CI/CD Pipeline Integration: Generate standardized testing configurations that facilitate seamless integration with automated build and deployment workflows for continuous testing.
| name | playwright-config-generator |
|---|---|
| description | Generate Playwright configuration files for cross-browser E2E testing. Triggers on "create playwright config", "generate playwright configuration", "playwright setup", "browser testing config". |
Playwright Config Generator
Generate Playwright configuration files for comprehensive cross-browser E2E testing.
Output Requirements
File Output: playwright.config.ts
Format: Valid Playwright configuration
Standards: Playwright 1.40+
When Invoked
Immediately generate a complete Playwright configuration with browser projects and test settings.
Configuration Template
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './tests',
use: {
baseURL: 'http://localhost:3000',
},
projects: [
{ name: 'chromium', use: { ...devices['Desktop Chrome'] } },
],
});
Example Invocations
Prompt: "Create playwright config for multi-browser testing"
Output: Complete playwright.config.ts with Chrome, Firefox, Safari projects.