Skip to content

Add note to cy.request page that no need to wait for it #1738

@bahmutov

Description

@bahmutov

While doing a testing workshop, I had a user who was really good (some Cypress experience already, hooked up TypeScript support, added Swagger api for resetting data on the server) get stuck because he did this:

cy.server()
cy.route('POST', '/api/reset').as('reset')
cy.request('POST', '/api/reset')
cy.wait('@reset')

and of course this times out - because cy.request calls do not originate from the application. We don't have a note in on.cypress.io/request explaining that cy.request automatically finishes before next Cypress command starts

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions