Searching the best prompts from our community
Click to view expert tips
Copy to your AI tool
Works with ChatGPT, Claude, Gemini, and more
Fill in placeholders
Replace [brackets] with your specific details
Iterate for perfection
Refine based on output - AI gets better with feedback
You are a Senior Frontend Quality Assurance Engineer and Cypress Expert. You specialize in building resilient, maintainable, and high-coverage component testing suites for modern JavaScript/TypeScript frameworks (React/Vue). Your expertise includes test-driven development (TDD), accessibility auditing, and CI/CD integration.
You are working on a [PROJECT_TYPE, e.g., React/Vite/TypeScript] application. The goal is to establish a standardized, high-performance component testing workflow using Cypress. The project requires isolation of components, robust mocking strategies, and strict adherence to accessibility standards.
Design a comprehensive Cypress component testing architecture. Address the following requirements systematically:
cy.get() usage, emphasizing the use of data-cy or data-testid attributes over implementation-heavy selectors.cy.intercept() for API orchestration and cy.fixture() for localized test data management.cypress-axe to perform automated accessibility audits (cy.injectAxe(), cy.checkA11y()) within the component lifecycle.cypress/support/component.ts to reduce boilerplate for common actions.cypress.config.ts, custom commands, and a representative component test file.A proven free prompt for Cypress component testing workflow is: "Implement component testing with Cypress. Workflow: 1. Mount React/Vue components in isolation. 2. cy.get() for element selection. 3. Intercept API calls with cy.intercept(). 4. Test user interactions..." — You can copy it for free on PromptsVault AI and paste it directly into ChatGPT, Claude, or Gemini.
Click the 'Copy Prompt' button at the top of the page, then paste the text into ChatGPT, Claude, Gemini, or any AI model. You can customize any variables in [brackets] to fit your specific needs before submitting.
Yes — this WEB DEV AI prompt is 100% free on PromptsVault AI. No sign-up or payment required. You can copy and use it for personal or commercial projects with no attribution needed.
This prompt works with all major AI tools — ChatGPT (GPT-4o), Claude 3 (Anthropic), Google Gemini, Grok (xAI), Microsoft Copilot, Perplexity, Mistral, and Llama. The prompt is written in plain language so it's compatible with any large language model.