-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress hangs during cypress open
and cypress run
after opening browser (4.6.0)
#7464
Comments
I have what I believe to be the same issue with a smaller repro from #7453 This takes a full 10+ seconds to load the first test during In 4.6.0 - when including the Again, the Test Runner runs completely fine when I remove the
import { Auth } from 'aws-amplify'
it('Loads the homepage', function () {
cy.visit('index.html')
});
<html>
<body>
</body>
</html>
{
"name": "my-application",
"version": "1.2.3",
"scripts": {},
"dependencies": {},
"devDependencies": {
"@babel/core": "^7.9.6",
"@babel/preset-env": "^7.9.6",
"@cypress/webpack-preprocessor": "^5.4.1",
"aws-amplify": "^3.0.12",
"babel-loader": "^8.1.0",
"cypress": "4.6.0",
"webpack": "^4.43.0"
}
}
Seems to stall at this DEBUG log:
|
cypress open
and cypress run
after opening browser (4.6.0)
@jennifer-shehane, thanks for investigating. We are facing a similar startup issue when upgrading to cypress 4.6.0. However, we don't use the You added the label |
@chrisbreiding is it catastrophic backtracking from the regex? I don't think you need https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit |
The code for this is done in cypress-io/cypress#7485, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior:
Running tests hangs.
With
cypress run
, it times out having never begun the first test.With
cypress open
, the Test Runner browser opens, but the test doesn't start running for 30+ minutes. It appears blank.The culprit seems to be this line. Surrounding it with
console.time/timeEnd
results in it taking over 30 minutes to run.Test code to reproduce
This can be seen in the Cypress Dashboard internal tests. Still trying to narrow it down to an easily reproducible (and publicly-postable) case.
Versions
Cypress 4.6.0
Current Workaround
Downgrade to Cypress 4.5.0.
The text was updated successfully, but these errors were encountered: