You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
has an example that cy.waits on a cy.request call. I am not sure I understand the example. Wouldn't cy.request automatically wait for the response? before reaching the test body?
Given that the POST call does not have a body, and given the intend, it seems to me that it might have been a typo. May be the example meant cy.intercept?
I have also checked https://github.com/cypress-io/cypress-realworld-app example and noted that
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This learning section on "Explicit Wait"
https://learn.cypress.io/cypress-fundamentals/waiting-and-retry-ability#explicit-waits
has an example that
cy.wait
s on acy.request
call. I am not sure I understand the example. Wouldn'tcy.request
automatically wait for the response? before reaching the test body?Given that the
POST
call does not have a body, and given the intend, it seems to me that it might have been a typo. May be the example meantcy.intercept
?I have also checked
https://github.com/cypress-io/cypress-realworld-app
example and noted thathttps://github.com/cypress-io/cypress-realworld-app/blob/4088a087679d7f906b1ccca874256eccbca48822/cypress/tests/ui/auth.spec.ts#L10
has a similar example in its entirety but making use of
cy.intercept
instead.Beta Was this translation helpful? Give feedback.
All reactions