Open 3rd-Eden opened 11 months ago
Thanks for this — in the meantime, that environment variable is very helpful. Just adding this for SEO, since it's what I was initially searching for:
Timed out waiting for the browser to connect. Retrying again...
There was an error reconnecting to the Chrome DevTools protocol. Please restart the browser.
TypeError: Cannot read properties of undefined (reading 'webSocketDebuggerUrl')
at _._fetchDebuggerURL (<embedded>:2466:520933)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async _._start (<embedded>:2466:520232)
The browser never connected. Something is wrong. The tests cannot run. Aborting...
This issue is pushing my team to move to playwright.
This issue is pushing my team to move to playwright.
That would be my recommendation as well. As this is just one of the countless problems we've faced so far.
Current behavior
As per title, when component testing in Cypress it's not uncommon that your components needs to be compiled by a variety of processes before it can be ran. The more transforms you need, the longer your webpack build takes. While working on component test suites I've noticed that there a couple of components that take up to 70, 80 seconds to compile with babel etc.. When these longer times happen the test suite is unable to run and dies with the following error:
Upon investigation by diving into the cypress code I've narrowed down the problem to the following timer:
https://github.com/cypress-io/cypress/blob/43af15aeadb7dec216bda6affb48030b3b917ab5/packages/server/lib/modes/run.ts#L465
After doubling this timeout the error goes away as the webpack processes no longer exceed the internal timeout:
So there are multiple problems here
CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT
, and cannot be configured through Cypress's configuration.Desired behavior
Test code to reproduce
I'm unable to provide you access to our test suites as they contain internal logic.
Cypress Version
12.17.4
Node version
18.11.0
Operating System
Mac 11.7.6 (20G1231)
Debug Logs
Other
No response