โ† All prompt kits
Free ยท 16 copy-paste prompts

Cypress โ€” AI Prompt Kit

Copy each prompt and paste it into ChatGPT or Claude. Work through the sections in order โ€” roadmap โ†’ concepts โ†’ code โ†’ framework โ†’ interview prep. Tell the AI your current skill level (the prompts already include that line).

Your Learning Roadmap

ROADMAP PROMPT โ€” Run this first

You are an expert SDET trainer with 15 years of experience.

I am a manual QA engineer transitioning into automation. My background:
- [X] years of manual testing experience
- Familiar with: [JIRA / test cases / regression testing / etc.]
- Programming knowledge: [none / basic / intermediate]
- Goal: become job-ready using Cypress with JavaScript
- Available study time per day: [30 mins / 1 hour / 2 hours]

Create a structured 8-10-week learning roadmap covering:
1. JavaScript fundamentals for testers (only what I need)
2. Cypress with JavaScript core concepts and architecture
3. Writing my first tests
4. Framework design and best practices
5. CI/CD integration
6. Interview preparation
7. AI concepts in testing for 2025/2026

For each week provide:
- Topic focus
- What I will be able to do by end of week
- 2-3 practice tasks
- Free resources to use

Format as a clean table then a detailed week-by-week breakdown.
Adjust timeline based on my daily study time.
Be specific โ€” this is my actual study plan, not a generic template.

Learn Concepts From Scratch

Prompt 2A-1: JavaScript Basics for Cypress Testers

You are a JavaScript instructor teaching a manual QA engineer.
Teach me only the JavaScript I need to write Cypress tests. Practical only.
Cover: variables (let/const), functions, promises vs callbacks,
objects, arrays, modules (require/import), error handling.
Rules: testing analogies, one example each.
Start with variables. Wait for 'next' before continuing.

Prompt 2B-1: How Cypress Works โ€” Architecture Explained

You are an expert Cypress trainer.

Explain how Cypress works under the hood to a manual QA engineer.

Cover:
1. Why Cypress runs INSIDE the browser โ€” key difference from Selenium/Playwright
2. What the Cypress Event Loop means for test writing
3. Automatic waiting in Cypress โ€” how it works and default timeouts
4. cy.get() vs Playwright locators โ€” key differences
5. Cypress command chaining โ€” how it differs from regular JavaScript
6. What Cypress cannot do (same-origin limitation, multiple domains)

After each concept: one interview Q&A.
Format: Concept โ†’ Explanation โ†’ Interview Q&A

Prompt 2B-2: Selectors and Commands in Cypress

You are a Cypress trainer.
Teach me selectors and key commands in Cypress.
Cover: cy.get() with CSS selectors, cy.contains(), cy.getByText(),
data-cy attributes (best practice), cy.find(), cy.within().
Key commands: cy.visit(), cy.type(), cy.click(), cy.select(),
cy.intercept(), cy.request(), cy.fixture().
For each: what it does, code example, when to use.
Why data-cy attributes are the recommended Cypress locator strategy.

Prompt 2B-3: Network Interception with cy.intercept()

You are a Cypress network testing expert.

Teach me cy.intercept() โ€” one of Cypress's most powerful features.

Cover:
1. What cy.intercept() does and how it differs from Playwright's page.route()
2. Intercepting and asserting on API calls made by the UI
3. Stubbing API responses to control what the UI renders
4. Testing how the UI handles API errors
5. cy.wait('@alias') โ€” waiting for intercepted requests

Show complete code examples for each.
Real-world scenario: how to test a search feature that calls an API.

Prompt 3A-1: Your First Cypress Test

You are a Cypress JavaScript trainer.
Guide me through writing my first Cypress test from scratch.
Use https://the-internet.herokuapp.com/login.
Step 1: npm install cypress. Step 2: folder structure.
Step 3: Complete test file, every line explained.
Step 4: Run with npx cypress open and npx cypress run.
Give me 3 variations to try myself โ€” no answers.

Prompt 3B-1: AI-Assisted Cypress Test Writing

You are a senior Cypress SDET acting as my coding partner.
I describe a scenario in plain English. You write the complete Cypress test,
explain every line, point out edge cases, suggest improvements.
My scenario: [DESCRIBE HERE]. Use https://www.saucedemo.com if unspecified.
After writing ask: negative tests? Page Object pattern? cy.intercept()?

Build A Full Cypress Framework

Prompt 4-1: Framework Architecture

You are a Principal SDET expert in Cypress.
Guide me through building a production-ready Cypress framework.
Cover: folder structure (exact tree), cypress.config.js for environments,
Page Object pattern in Cypress, custom commands, fixtures for test data,
cy.session() for authentication, GitHub Actions CI/CD, Cypress Dashboard.
Show complete structure. Top 3 Cypress framework mistakes?

Prompt 4-2: Cypress vs Playwright โ€” Know Both for Interviews

You are a senior SDET expert in both Cypress and Playwright.

Teach me how to compare Cypress and Playwright in interviews.

Cover key differences:
1. Language support โ€” Playwright wins here (Python, Java, C#)
2. Architecture โ€” in-browser vs WebSocket
3. Same-origin restriction in Cypress โ€” what it means practically
4. Parallel execution โ€” Playwright free, Cypress requires paid Cloud
5. Time-travel debugging in Cypress โ€” genuine advantage
6. When would you choose Cypress over Playwright?
7. When would you choose Playwright over Cypress?

Give me the interview answer for: 'We use Cypress. Would you be comfortable
working with it? How does it compare to Playwright?'

Prompt 4-3: CI/CD Integration

You are a DevOps and Cypress expert.
Build a GitHub Actions workflow for my Cypress project.
Include: trigger on PR and push, Node.js setup, npm ci,
run Cypress headless, upload screenshots and videos on failure.
Show complete .github/workflows/cypress.yml with comments.
Top 3 CI failure reasons for Cypress tests?

Interview Preparation

Prompt 5-1: Mock Interview โ€” Junior Level

You are a senior SDET interviewer at a product company.

Conduct a mock Cypress interview with me at junior SDET level.

Rules:
- Ask one question at a time
- Wait for my answer before giving feedback
- After my answer: tell me what was good, what was missing, give the ideal answer
- Ask 10 questions total

Include: 3 conceptual, 3 practical scenario, 2 comparison, 2 code-reading questions.

Start now. Ask your first question.

Prompt 5-2: Mock Interview โ€” Senior SDET Level

You are a Principal Engineer interviewing for a Senior SDET role.

Conduct a senior-level Cypress mock interview.

Focus on: framework architecture decisions, performance and scalability,
CI/CD pipeline design, flaky test management, test strategy, mentoring.

Rules: one question at a time, wait for answer, give structured feedback.
8 questions total. Begin.

Prompt 5-3: Salary Negotiation for Automation Roles in India

You are a career coach specialising in QA and SDET roles in India.

I am transitioning to automation using Cypress and preparing for interviews.

My profile:
- [X] years manual testing experience
- Transitioning to automation
- Target role: [SDET / Automation Engineer / Senior QA]
- Target city: [Chennai / Bangalore / Hyderabad / Remote]

Provide:
1. Current market salary range for my profile in India (2025/2026 data)
2. Exact words to say when asked for expected CTC
3. How to handle an offer below my expectation
4. What NOT to say in salary discussions
5. How to negotiate when moving from manual to automation roles

AI Concepts And AI-Assisted Testing

Prompt 6-1: AI in Testing โ€” Interview Answer Framework

You are an expert on AI in software testing.

Teach me how to answer AI-related questions in a Cypress SDET interview.

Cover these with ideal interview answers:
1. How is AI changing test automation in 2025/2026?
2. How do you use AI tools like ChatGPT or Claude in daily testing work?
3. What is visual AI testing and which tools support it?
4. How would you test an AI-powered feature as an SDET?
5. What is self-healing test automation and how does it work?

For each: concept โ†’ interview answer โ†’ specific tool to name โ†’ the one line that impresses.
Format: Question โ†’ Concept โ†’ Answer โ†’ Key Line

Prompt 6-2: Generate Tests from Requirements Using AI

You are a senior SDET who uses AI daily in Cypress workflows.

Teach me to generate tests from user stories using AI.

Walk through your complete workflow:
Step 1: Turn a user story into testable requirements
Step 2: Exact prompt to generate test cases from the story
Step 3: Exact prompt to turn test cases into automation code
Step 4: How to review and validate AI-generated code
Step 5: What AI gets wrong most often and how to catch it

Live example using this user story:
'As a user, I want to reset my password so I can regain
access to my account if I forget my credentials.'

Show: user story โ†’ test cases โ†’ automation code.
Then ask me to try with a story of my own.

Prompt 6-3: Build Your AI-Assisted Daily Testing Workflow

You are a senior SDET who integrates AI into daily work.

Build a practical AI-assisted workflow for my daily testing tasks.

Cover:
1. Using ChatGPT/Claude for test case generation
   - The exact prompt structure that works
   - What to provide and what AI cannot figure out alone
2. Using AI for professional bug report writing from rough notes
3. Using AI for test data generation
4. Using AI for automation code review โ€” finding anti-patterns
5. The daily AI habits of a productive SDET in 2025

End with: the one AI skill every QA engineer should master first.

Want the matching interview Q&A and coding kits for Cypress? Browse the kits โ†’

Want new prompt kits in your inbox?

Get new prompt kits, QA resources, and guides as they drop. No spam.