Skip to main content

Cypress AI features

Cypress offers AI capabilities across the platform to help teams write tests faster, understand failures more clearly, and keep tests running as apps change. These capabilities are built into the tools you already use - the Cypress App and Cypress Cloud - and are designed to reduce the manual effort that can slow down testing.

This page explains what's available, how each capability fits into your workflow, and how Cypress handles your data.

What Cypress AI does

Cypress AI helps at three distinct points in the testing workflow:

  • Test authoring: Generate test assertions and commands from natural language or recorded interactions, so you spend less time writing boilerplate and more time on what matters.
  • Test maintenance: Automatically adapt to UI changes that would otherwise break selectors, reducing the time spent fixing tests that stopped working.
  • Test analysis: Surface plain-language explanations of what tests do and what went wrong, so you spend less time reading logs and more time fixing the actual problem.

They can be used independently or together.

AI capabilities at a glance

CapabilityWhere it livesWhat it does
cy.prompt()Cypress AppConverts natural language steps into Cypress commands
Studio AICypress AppRecommends assertions as you record interactions
Test Intent SummariesCypress CloudSummarizes what a test does in plain language
Error SummariesCypress CloudExplains what went wrong in a failing test
UI Coverage Test GenerationCypress CloudGenerates targeted tests from coverage gaps

Cypress AI requires a Cloud account

Since Cypress AI features use large language models (LLMs) to interpret prompts, analyze DOM state, and generate test code, Cypress Cloud manages those LLM requests securely on your behalf.

Without a Cloud account, there is no secure channel through which to route those requests, no organizational controls to apply, and no way to enforce the data handling commitments Cypress makes to its customers.

A free Cypress Cloud account is enough to get started.

Create a free account ➜

Free accounts include a two-week trial of all paid features, including the higher AI recommendation limit.

Capabilities in detail

cy.prompt()

note

Best for: teams who want to generate Cypress test code from plain English, or reduce selector maintenance as their UI evolves.

cy.prompt() is a Cypress command that converts natural language test steps into executable Cypress commands. It uses AI to interpret each step, evaluate the DOM, generate selectors, and produce Cypress code. cy.prompt() supports two workflows.

cy.prompt(
[
'visit https://cloud.cypress.io/login',
'type "[email protected]" in the email field',
'type {{password}} in the password field',
'click the login button',
'verify we are redirected to the dashboard',
],
{
placeholders: { password: 'secret123' },
}
)

Workflow 1: Generate once, commit to source control

Use cy.prompt() to generate a test quickly, then export and commit the generated code.

This workflow is a good fit when:

  • Your app has stable, predictable elements.
  • You want predictable, reviewable test code in version control.
  • You want to use AI to accelerate authoring but prefer to own the output.
Generated Cypress code dialog

Workflow 2: Continuous self-healing

Keep cy.prompt() running in your tests. When a selector fails between runs, Cypress regenerates code for that step automatically. This is "self-healing" — the test adapts without manual intervention.

This workflow is a good fit when:

  • Your app is in active development and UI changes frequently.
  • You are willing to accept AI calls at runtime in exchange for less maintenance.
  • You understand that self-healing works best when it catches occasional, unexpected changes — not when selectors change on every run.
Console logs for a self-healed cy.prompt step

Read the full cy.prompt() documentation →

Studio AI

note

Best for: teams who want to write assertions faster without guessing what to assert after every interaction.

Cypress Studio lets you build and extend E2E tests by recording real interactions in your app. Studio AI adds assertion recommendations on top: as you record, it watches what changes in the UI and suggests assertions automatically. You review them, keep what fits, and save.

Studio AI observes DOM changes between interactions and generates assertions based on what actually changed — visibility, text content, form values, element attributes, URL changes, and more. It does not have access to your application's source code or business logic.

Read the full Studio AI documentation →

Test Intent Summaries

note

Best for: teams who need to understand what a test is checking without reading every command or watching a full Test Replay.

Test Intent Summaries are AI-generated descriptions of a test's purpose, available in the Cypress Cloud test details sidebar. They help you orient quickly — whether you are reviewing a new test or debugging a failure — without needing to trace through the command log manually.

Test Intent Summaries are available on all Cypress Cloud plans at no additional cost.

Test details sidebar AI-generated Test Intent Summary

Error Summaries

note

Best for: teams who want to understand why a test failed without parsing raw stack traces.

"At a glance" Error Summaries are plain-language explanations of what went wrong in a failed test attempt, available alongside stack traces and error messages in the Cypress Cloud test details sidebar. They describe what led to the failure so you can jump directly to investigating the root cause.

Error Summaries are available on all Cypress Cloud plans at no additional cost.

Test sidebar attempts and errors

UI Coverage Test Generation

note

Best for: teams using UI Coverage who want to close coverage gaps without writing tests from scratch.

UI Coverage Test Generation lets you generate targeted Cypress tests directly from coverage gaps identified during code reviews. Instead of manually identifying what to test, you can generate a test scaffold from the gap and refine from there.

This capability is included with UI Coverage and is not available on standard Cloud plans.

Cypress Cloud screenshot cropped to show a generated test after clicking on the 'Generate Test' button for the '/commands/cookies' link.

Read the UI Coverage Test Generation documentation →

Security and data handling

Read the Cypress AI Security page →

Disabling AI features

AI features are opt-out, not opt-in by default. AI capabilities are enabled for all users of an organization on the applicable plan. Organization admins and owners can disable AI capabilities for their entire organization from Cypress Cloud organization settings.

Cypress AI organization setting in Cypress Cloud

Usage limits

Usage limits vary by feature and plan. During beta periods, limits are subject to change.

CapabilityFree planPaid plan
Studio AI recommendations60 per hour, per user300 per hour, per user
cy.prompt() prompts100 per hour, per user600 per hour, per user
cy.prompt() steps500 per hour, per user3,000 per hour, per user
Test Intent SummariesIncludedIncluded
Error SummariesIncludedIncluded
UI Coverage Test GenerationNot availableIncluded with UI Coverage

If you need to increase your limits, contact support at [email protected].

Pricing

During experimental and beta periods, AI features are provided at no additional charge. Pricing is subject to change. We will communicate any changes before they take effect.

See Cypress Cloud plans for full plan details.

See also