question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Freezes during manual tests

See original GitHub issue

Summary:

I can’t reproduce reliably. It started happening sometime in the past few weeks. We wrote about half a dozen integration tests on a new project before it started happening.

I’ll run a test manually, using the UI. It’s a coin-flip whether it freezes or runs smoothly. It will usually freeze when the app is loading initially. It will freeze less often, after the preloading animation, somewhere usually near the beginning of the tests. It will usually complete the test if gets through maybe the first 25% of the test.

It will sometimes freeze for 10s and then unfreeze. This causes the test to fail due to timeout. It usually freezes long enough for me to grow impatient and kill it. I’ll then go back to the cypress UI, select the test, and run it again, and it’s another coin-flip as to whether it gets through.

This is not me doing hundreds of tests. This is freezing when I run one single test. The test clicks a few buttons and fills out a form. The most complicated thing in it is cy.server() and some cy.wait(@example) calls to wait for some web services to return before continuing.

I have not seen the test fail when I do npx cypress run, only when I do npx cypress open.

I’m testing an Angular project, if you think that might be relevant.

Please advise on troubleshooting steps.

Current behavior:

Freezes, about half the time, when tests are run manually through the UI. Causes tests to fail when it unfreezes. Doesn’t always unfreeze.

Desired behavior:

Don’t freeze.

Test code to reproduce

I can not provide a test example for this. Happens with all of my tests now, even very simple ones. Possible that it is something external to Cypress, but I’m not sure what, since my app doesn’t freeze outside of cypress.

Versions

Cypress package version: 3.8.1 Cypress binary version: 3.8.1 Angular 8.2.6 Node: v10.18.0 and v13.6.0 (I just upgraded to see if it fixed the problem. It did not)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
craig-daecommented, Jan 14, 2020

Summary of issues for anyone else who comes here:

Cypress is freezing on Chrome version 79 when run manually (through the UI). If you have 79, which is the latest version as of today, the problem is Chrome, NOT CYPRESS.

There are two solutions. I prefer the first:

  1. Select the Electron browser from within Cypress instead of Chrome
  2. Rollback to version 78 of Chrome (link above)

I prefer option 1 because it doesn’t involve rolling back Chrome, which is a huge pain. Also, Chrome had some other weird behavior for me, where it struggled when I tried to reload the app I’m writing.

Thanks Cypress Team (@jennifer-shehane) for your help!

1reaction
craig-daecommented, Jan 14, 2020

Thanks hedge.

Downgraded to 78. I’ve run 3 tests without freezing, and with a noticeable reduction of slugishness.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What You Should Know About the Why & How of Code Freezes
Testing freezes take place for a release as it is being finalized and going through the “extra” tests before release. These tests aren't ......
Read more >
COVID-19 at-home tests: What happens if they freeze in cold ...
If you've performed the test correctly and the line(s) doesn't appear in the time frame the instructions say it should, "then the results...
Read more >
FIX: Test Manager crashes when you run a manual test case ...
File name File version File size Date Time Platform QTController.exe.config Not applicable 5,505 29‑Feb‑12 0:59 Not ap... Leviewer.exe 10.0.40219.389 118,544 20‑Mar‑12 15:29 x86 Microsoft.teamfoundation.build.client.dll 10.0.40219.389 436,552...
Read more >
Fix computer freezes when playing games [Easily] - Driver Easy
Method 6: Run System File Checker​​ Your “computer freezes during gameplay” issue may also be caused by system file corruption. You can run ......
Read more >
What is Code Freeze? - Professionalqa.com
Code freeze is a popular technique adopted to fasten the delivery process by minimising total number of changes at the very end moment....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found