cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.66k stars 3.16k forks source link

Infinite error loop when the chainer is not found #26551

Open mmonfared opened 1 year ago

mmonfared commented 1 year ago

Current behavior

When we chain something to chai assertions which is wrong, cypress goes into an infinite loop for that assertions. for example cy.get('input[type=checkbox]').should('not.exits').

Desired behavior

Cypress should show an error once

Test code to reproduce

it('reproduce', () => {
    cy.visit('http://wikipedia.com')
    cy.get("#google").should('not.exits')
})

Cypress Version

v12.10.0

Node version

v12.22.9

Operating System

Linux Ubuntu 22.04.2 LTS

Debug Logs

No response

Other

No response Screenshot from 2023-04-20 15-58-10

mjhenkes commented 1 year ago

@mmonfared, thanks for logging! i'm definitely able to reproduce this.

mmonfared commented 6 months ago

Hi team, any news about resolving this issue?