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
- clone repo
- run
cypress open - choose component testing
- choose “start component testing in Chrome”
- 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)
I can confirm through metrics show on my CD status badges, that I had this issue, and after downgrading to
cypress@13.3.2I no longer had this issue.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
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.