Test suite hard fails with Cannot read properties of undefined (reading 'send') when webpack process takes longer than CYPRESS_INTERNAL_BROWSER_CONNECT_TIMEOUT #27623
Labels
CT
Issue related to component testing
npm: @cypress/webpack-dev-server
@cypress/webpack-dev-server package issues
stale
no activity on this issue for a long period
type: performance 🏃♀️
Performance related
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:
cypress/packages/server/lib/modes/run.ts
Line 465 in 43af15a
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
The text was updated successfully, but these errors were encountered: