cypress: Upgrade to version 13.3.3 causes Cypress to crash in Angular

Current behavior

Running previously working Angular component tests results in an error “Session with given id not found.” and Cypress crashes.

Specifically, when clicking “Start component testing in Chrome”, Cypress crashes. Test with two different Angular applications.

Session with given id not found. Error: Session with given id not found. at <embedded>:2466:519827 at _._handleMessage (<embedded>:2466:521860) at A.<anonymous> (<embedded>:2466:521673) at A.emit (node:events:513:28) at g.U (<embedded>:2466:506953) at g.emit (node:events:513:28) at g.dataMessage (<embedded>:2466:487328) at <embedded>:2466:486860 at <embedded>:2466:478182 at <embedded>:2466:479134 at afterWrite (node:internal/streams/writable:500:5) at onwrite (node:internal/streams/writable:480:7) at Zlib.<anonymous> (node:internal/streams/transform:190:7) at Zlib.processCallback (node:zlib:613:8)

Desired behavior

Cypress shouldn’t crash.

Test code to reproduce

https://github.com/mattbodman/cypress-test.git

  1. clone repo
  2. run cypress open
  3. choose component testing
  4. choose “start component testing in Chrome”
  5. observe command line

Cypress Version

13.3.3

Node version

18.18.0

Operating System

Windows 10 Ent

Debug Logs

No response

Other

No response

About this issue

  • Original URL
  • State: closed
  • Created 8 months ago
  • Reactions: 9
  • Comments: 17 (3 by maintainers)

Most upvoted comments

I can confirm through metrics show on my CD status badges, that I had this issue, and after downgrading to cypress@13.3.2 I no longer had this issue.

Canary Heartbeat CD Enabler Integrated Unit Test Development Coding Effort

I just would like to take this time to encourage the cypress team to utilize continuous deployment and best practices for code deployments, especially for code that functions as a framework intended to facilitate continuous deployment/…

You should probably use another form of UI testing framework, such as @AWS CloudWatch Synthetics given the notable lack of a internal ui testing framework being used that isn’t related to the product offered. Thank you

In light of such prevailing conditions, I find the forceful notifications and subsequent suspensions of Cypress account access, due to surpassing the complimentary quota in 'Cypress cloud usages,' to be an overly aggressive method of underscoring the requirement to transition to the paid versions of Cypress. This tactic is unpalatable, especially given the inherent instability of the service. Furthermore, I am compelled to express my disapproval and disappointment concerning the unprofessional and discourteous treatment of users, who are integral to the development process and serve as 'test users.' The sole motivation for my financial investment in a program or API is the convenience of not having to code it myself.For instance, in the realm of video games, I am willing to invest financially because they generally function seamlessly, sparing me the need to comprehend the intricate programming aspects.



I concur with your sentiment, @jfarris587, as this is undoubtedly an unfavorable statement that carries a negative connotation. However, I must inquire, is it justifiable to be confronted with a $75 monthly fee after surpassing the free quota in the @cypress-github-team-services-sa cloud, especially considering the current issues that question the stability of the product? I am merely playing the role of a devil's advocate in this scenario.

FYI: in my case its fixed with 13.4.0, see changelog

@MikeMcC399

Confirmed it is working on my test repo and production repo with 13.4.0. Thanks team!

resolved in v13.4.0 for us

Works for me @MikeMcC399

@mattbodman

Could you try with cypress@13.4.0?

I wasn’t able to reproduce from your repo and it seems that the issue can show up randomly. That is probably the reason also that various people thought it was linked to a certain browser - which was probably more coincidence than anything else.

It would be great anyway if you could check whether the latest release (13.4.0) resolves it for you.