cypress-test-generator
Generate Cypress E2E test files and configuration for web application testing. Triggers on "create cypress test", "generate cypress config", "e2e test for", "cypress setup".
When & Why to Use This Skill
The Cypress Test Generator skill automates the creation of end-to-end (E2E) testing frameworks for web applications. By generating production-ready Cypress 13.x configurations and TypeScript test files, it significantly reduces the manual effort required to set up robust quality assurance pipelines and ensures high-quality code delivery.
Use Cases
- Project Initialization: Quickly bootstrap a new web project with a complete Cypress configuration and directory structure.
- User Flow Automation: Generate comprehensive test scripts for critical user journeys such as login, registration, and checkout processes.
- Regression Testing: Create automated tests to verify that new code changes do not break existing functionality in the web application.
- Cross-Browser Validation: Produce standardized test files that can be executed across different browser environments to ensure UI consistency.
| name | cypress-test-generator |
|---|---|
| description | Generate Cypress E2E test files and configuration for web application testing. Triggers on "create cypress test", "generate cypress config", "e2e test for", "cypress setup". |
Cypress Test Generator
Generate Cypress E2E test files and configuration for comprehensive web application testing.
Output Requirements
File Output: cypress.config.ts, cypress/e2e/*.cy.ts
Format: Valid Cypress configuration and test files
Standards: Cypress 13.x
When Invoked
Immediately generate Cypress configuration and sample test files for the specified application.
Configuration Template
import { defineConfig } from 'cypress';
export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
supportFile: 'cypress/support/e2e.ts',
},
});
Example Invocations
Prompt: "Create cypress config and login test"
Output: Complete cypress.config.ts and cypress/e2e/login.cy.ts.