-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Labels
stage: needs investigatingSomeone from Cypress needs to look at thisSomeone from Cypress needs to look at thistype: bug
Description
Current behavior
If Cypress is started with npx cypress open --e2e --browser electron
and Cypress app data has been cleared according to Troubleshooting > Clear App Data, then Cypress crashes running the first test.
A second attempt (without clearing app data) succeeds.
Desired behavior
Cypress should not crash if app data has been cleared.
Test code to reproduce
rm -rf ~/.config/Cypress/cy/*
git clone --branch 32132-single-spec-cy-15 https://github.com/MikeMcC399/cypress-test-tiny
cd cypress-test-tiny
npm ci
npx cypress open --e2e --browser electron
Select "Continue"
Select and run spec.cy.js
Cypress Version
First reported on Cypress 14.5.3
Also reproducible on Cypress 15
Node version
v22.18.0
LTS
Operating System
Ubuntu 24.04.3
LTS
Debug Logs
export DEBUG=cypress:server:browsers:cri-client
cypress:server:browsers:cri-client error classified as WEBSOCKET_NOT_OPEN_RE; enqueuing and attempting to reconnect +1ms
cypress:server:browsers:cri-client connection was closed was trying to reconnect +0ms
cypress:server:browsers:cri-client closed cri client { closed: true, target: '4A67300744509372DB33D2F6D573EADF' } +0ms
cypress:server:browsers:cri-client closing +0ms
cypress:server:browsers:cri-client not closing, cri client is already closed { closed: true, target: '33A7778B2BB52253632FE02B20D0D44E', connection: p { _options: { host: '127.0.0.1', port: '37855', target: '33A7778B2BB52253632FE02B20D0D44E', local: true, useHostName: true }, _emitter: EventEmitter { _events: [Object: null prototype], _eventsCount: 4, _maxListeners: undefined, [Symbol(shapeMode)]: false, [Symbol(kCapture)]: false }, _terminated: true, _gracefullyDisconnect: [AsyncFunction (anonymous)], _reconnect: [AsyncFunction (anonymous)], _broadcastEvent: [Function (anonymous)], _autoReconnect: false, debug: [Function: i] { namespace: 'cypress:server:browsers:cdp-connection:33A7778B2BB52253632FE02B20D0D44E', useColors: true, color: 221, extend: [Function: d], destroy: [Function: deprecated], enabled: [Getter/Setter], inspectOpts: [Object] }, verboseDebug: [Function: i] { namespace: 'cypress-verbose:server:browsers:cdp-connection:33A7778B2BB52253632FE02B20D0D44E', useColors: true, color: 68, extend: [Function: d], destroy: [Function: deprecated], enabled: [Getter/Setter], inspectOpts: [Object] }, _connection: undefined } } +0ms
cypress:server:browsers:cri-client closing +0ms
cypress:server:browsers:cri-client closing cri client { closed: false, target: 'ws://127.0.0.1:37855/devtools/browser/ef16a6cb-6261-4372-9511-4110596ef377' } +0ms
cypress:server:browsers:cri-client closed cri client { closed: true, target: 'ws://127.0.0.1:37855/devtools/browser/ef16a6cb-6261-4372-9511-4110596ef377' } +21ms
We detected that the electron tab running Cypress tests closed unexpectedly.
We have failed the current spec and aborted the run.
Other
No response
Metadata
Metadata
Assignees
Labels
stage: needs investigatingSomeone from Cypress needs to look at thisSomeone from Cypress needs to look at thistype: bug