Skip to content
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

Spy does not retry when used as an alias #1156

Closed
bahmutov opened this issue Jan 5, 2018 · 2 comments
Closed

Spy does not retry when used as an alias #1156

bahmutov opened this issue Jan 5, 2018 · 2 comments
Assignees
Milestone

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Jan 5, 2018

Bug, Mac, Cypress 1.4.1

Reproducible test cypress-io/cypress-example-recipes#86 and pull request cypress-io/cypress-example-recipes#87

// works
it('should retries until spy is called', () => {
    cy.wrap(spy).should('have.been.calledOnce')
    setTimeout(spy, 1000)
})
// does not retry
it('works as alias', () => {
    cy.get('@spy2').should('have.been.calledOnce')
    setTimeout(spy2, 1000)
})
@brian-mann
Copy link
Member

Investigated and this is the root cause for this issue as well: cypress-io/cypress-example-recipes#88

@brian-mann brian-mann self-assigned this Feb 11, 2018
@brian-mann brian-mann added this to the 2.0.0 milestone Feb 11, 2018
brian-mann added a commit that referenced this issue Feb 11, 2018
@brian-mann
Copy link
Member

Released in 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants