Write End-to-End Tests
Generate comprehensive end-to-end test cases for your web applications. Create robust test scenarios that catch bugs before production.
Prompt Template
Variables to Customize
[APPLICATION_TYPE] Type of web application being tested
Example: E-commerce website with user authentication, product catalog, shopping cart, and checkout process
[KEY_FEATURES] Main features that need E2E testing
Example: User login/registration, product search and filtering, add to cart, checkout flow, payment processing, order confirmation
[TESTING_FRAMEWORK] E2E testing framework to use
Example: Cypress
[TARGET_BROWSERS] Browsers to test compatibility
Example: Chrome, Firefox, Safari
[USER_ROLES] Different types of users in the system
Example: Guest users, registered customers, premium members, administrators
Example Output
Pro Tips for Best Results
- Use data-cy attributes instead of CSS selectors for more stable test targeting
- Implement custom commands for common actions like login to reduce code duplication
- Include both happy path and edge case scenarios in your test suite
- Add explicit waits for dynamic content and API calls to prevent flaky tests
- Create separate test data for each test run to ensure test isolation
Tags
Want 500+ Expert Prompts?
Get the Premium Prompt Pack — organized, tested, and ready to use.
Get it for $29Related Prompts You Might Like
Implement Search Functionality
I need to implement search functionality for my [APPLICATION_TYPE] application. Here are the key requirements: **Techni...
Generate Docker Compose Configuration Files
You are an expert DevOps engineer specializing in containerization and Docker Compose. I need you to create a comprehens...
Write a Professional README File
Create a comprehensive README file for a [PROJECT_TYPE] project called "[PROJECT_NAME]". The project is built using [TEC...
Implement OAuth 2.0 Authentication System
I need to implement OAuth 2.0 authentication for my [APPLICATION_TYPE] application using [PROGRAMMING_LANGUAGE] and [FRA...
Secure SQL Injection Vulnerability
You are a senior cybersecurity engineer specializing in database security. I need you to analyze the following code for ...
Debug Async JavaScript Issues
You are an expert JavaScript debugger specializing in asynchronous code issues. I need help debugging async JavaScript p...