Skip to content

Test gets into runaway loop if cy.wrap is inside cy.should #14656

Closed
@bahmutov

Description

@bahmutov

Cypress v6.3.0

it('gets into a loop', () => {
  cy.wrap('bar')
    .should(() => {
      cy.wrap('foo')
    })
})

Runs away, never finishes

runaway-test.mp4

Example in https://github.com/cypress-io/cypress-test-tiny/tree/runaway

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/driverThis is due to an issue in the packages/driver directorytype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions