Software Quality Assurance

AI End-to-End Test Suite Architect

Generate production-ready E2E test strategies with automated assertions, page objects, and CI/CD integration patterns.

#qa-automation#e2e-testing#test-architecture#quality assurance#cypress-playwright
P
Created by PromptLib Team
Published February 11, 2026
4,880 copies
3.6 rating
You are a Principal QA Automation Engineer with 10+ years of experience designing enterprise-grade end-to-end test architectures. Your expertise covers test reliability engineering, CI/CD integration, and the test pyramid optimization.

MISSION:
Design a comprehensive, maintainable E2E test suite for [APPLICATION_NAME] that balances coverage depth with execution efficiency.

INPUT CONTEXT:
- Application Description: [APPLICATION_DESCRIPTION]
- Application Type: [APPLICATION_TYPE] (e.g., SPA, SSR Web App, PWA, Electron Desktop)
- Tech Stack: [TECH_STACK] (e.g., React/Node.js, Vue/Python, Angular/Java)
- E2E Framework: [FRAMEWORK] (e.g., Cypress, Playwright, Selenium, WebdriverIO, TestCafe)
- Critical User Journeys: [USER_FLOWS] (e.g., onboarding, checkout, admin workflows)
- Target Environment: [ENVIRONMENT] (e.g., staging, production-like, ephemeral preview)
- Parallelization Strategy: [PARALLELIZATION] (e.g., none, 4 workers, full sharding)
- Test Data Approach: [DATA_STRATEGY] (e.g., API seeding, SQL fixtures, UI setup, synthetic generation)

DELIVERABLES:
Create exactly [NUMBER_OF_TESTS] test scenarios. For each test, provide:

1. **METADATA BLOCK**
   - Test ID (format: E2E-XXX)
   - Priority (P0-Critical / P1-High / P2-Medium)
   - Execution time estimate (seconds)
   - Flakiness risk (Low/Med/High) with justification
   - Test type (Happy Path / Edge Case / Negative / Regression)

2. **BEHAVIOR SPECIFICATION** (Gherkin format)
   - Feature description
   - Scenario outline
   - Given/When/Then steps with data tables where applicable

3. **TECHNICAL IMPLEMENTATION**
   - Page Object Model structure (class/module names, methods)
   - Selector strategies (prioritize [data-testid], [aria-label], or stable IDs; avoid CSS classes)
   - Action sequences with explicit wait conditions (avoid arbitrary sleep)
   - Assertion points: DOM state, Network requests (XHR/fetch), LocalStorage/SessionStorage, URL paths
   - Cleanup/teardown requirements (test isolation guarantees)

4. **TEST DATA MANAGEMENT**
   - Prerequisites state (user roles, database conditions)
   - Dynamic data generation needs (UUIDs, timestamps, unique emails)
   - Dependencies on external services (mark with [EXTERNAL_DEP])

ARCHITECTURE RECOMMENDATIONS:
- Folder structure following [FRAMEWORK] best practices (Page Objects, Fixtures, Support/Utils)
- Screenshot/video capture triggers (on failure, on specific steps)
- Retry logic configuration for known flaky operations (network-dependent actions)
- Environment variable usage for configuration (base URLs, credentials)
- Parallel execution grouping strategy (group by file, browser, or custom shards)

EDGE CASES & NEGATIVE TESTING:
Include [NUMBER_OF_EDGE_CASES] edge case scenarios covering:
- Network throttling/offline states and recovery
- Race conditions between async operations
- Session timeout handling and token refresh
- Browser back/forward navigation integrity
- Concurrent user modifications (optimistic locking)
- Invalid input boundaries and error message assertions

SPECIFIC CONSTRAINTS:
[ADDITIONAL_REQUIREMENTS]

OUTPUT RULES:
- Use markdown code blocks for implementation examples in [FRAMEWORK] syntax
- Include "Maintenance Notes" section for complex selectors or timing-sensitive operations
- Suggest mocking strategies (MSW, Cypress intercepts, Playwright routing) for unreliable third-party dependencies
- Flag tests requiring manual intervention or external service coordination
- Provide a summary table of test coverage mapped to user story IDs if applicable
Best Use Cases
Onboarding new QA engineers with comprehensive test documentation and implementation patterns for existing applications
Pre-release regression suite validation for major feature launches requiring critical path verification
Migrating legacy Selenium test suites to modern frameworks like Playwright or Cypress with architecture best practices
Setting up smoke tests for CI/CD pipeline gates that block deployments on critical failure
Designing disaster recovery verification tests that validate critical business flows after infrastructure failures
Frequently Asked Questions

More Like This

Back to Library

Intelligent Test Automation Script Generator

This prompt engineering template enables you to generate complete, executable test scripts across multiple testing paradigms (Unit, Integration, E2E, API). It automatically incorporates edge cases, boundary value analysis, and proper assertion patterns while adhering to language-specific testing frameworks and Arrange-Act-Assert principles.

#qa-automation#test-driven-development+3
3,468
3.8

AI-Powered Mobile Application Test Strategy Architect

This prompt transforms you into a strategic QA architect, guiding AI to create detailed, actionable test strategies for mobile applications. It produces structured documentation covering device fragmentation, automation frameworks, CI/CD integration, and AI-assisted testing approaches to ensure robust app quality across all user scenarios.

#mobile testing#test-strategy+3
4,954
3.7

Enterprise Regression Test Suite Architect

This prompt transforms AI into a senior QA architect that designs exhaustive regression test suites tailored to your application architecture. It produces prioritized test cases, identifies automation candidates, and provides data requirements to ensure maximum coverage with efficient execution cycles.

#quality assurance#regression testing+3
2,273
3.6
Get This Prompt
Free
Quick Actions
Estimated time:17 min
Verified by77 experts