Cypress has added support for referencing cy.intercept aliases directly inside cy.prompt instructions. Previously, waiting for network requests required breaking out of the prompt block with a standalone cy.wait() call, disrupting test readability. Now, you can define your intercept and alias outside the prompt, then reference

4m read timeFrom cypress.io
Post cover image
Table of contents
What this looks like in practiceWhy this matters for AI-assisted test writingWhat's requiredThe simplest version of something usefulTry it now

Sort: