-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cy.get('@aliasOfIntercept) return null #9306
Comments
Yeah, this is a bug. Reproducible exampleit('test cy.intercept()', () => {
cy.intercept('url').as('getUrl')
cy.visit('https://example.com')
cy.window().then((win) => {
const xhr = new win.XMLHttpRequest()
xhr.open('GET', '/url')
xhr.send()
})
cy.wait('@getUrl').should((interception) => {
expect(interception).to.not.be.null
expect(interception).to.not.be.null
})
cy.get('@getUrl').should((interception) => {
expect(interception).to.not.be.null
})
}) |
Hi @jennifer-shehane is it safe to assume that when this bug is fixed, the extra dot commands like Cheers! |
The code for this is done in cypress-io/cypress#9594, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Till now (before v6) i could get data eg
request.body
usingcy.get(aliasOf cy.route)
if request occurs. Now I get on the same code which works before.Desired behavior
I should get data from request
Test code to reproduce
Versions
6.0.0
The text was updated successfully, but these errors were encountered: