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 it by name (using the @ prefix) within the prompt instructions array. Cypress resolves the wait in sequence automatically. The alias must be defined before cy.prompt runs. This is described as the first iteration of network-awareness in cy.prompt, handling the simplest case of waiting for a named intercept.
Table of contents
What this looks like in practiceWhy this matters for AI-assisted test writingWhat's requiredThe simplest version of something usefulTry it nowSort: