cypress: Cypress performance degrades to the point of failure in Chrome 79 on Ubuntu
Current behavior:
I can run my tests fine using Cypress 3.4.1 or 3.8.0 against Chrome 78 on Ubuntu 18.04, but if I update to Chrome 79, Cypress starts hanging in random places in my test (as in, the tests hang 0-20 seconds in, but at a different point each time I try). All the Cypress controls (e.g. Stop button) become unresponsive and I can only close the Chrome window.
Desired behavior:
I want to be able to use Cypress against the latest Chrome version.
Steps to reproduce: (app code and test code)
I’ve reproduced this using the following basic test:
describe('page', () => {
for (let i=1; i <= 30; i++) {
it(`test ${i}`, () => {
cy.visit('https://www.google.com');
});
}
});
It’s usually hanging indefinitely after about 12-15 tests when using cypress open. Note that it’s very choppy even when the tests are still running, with multiple seconds between updates to the elapsed time and the rest of the window.
Interestingly, cypress run --browser "chrome" does better. It’s still choppy, but it eventually finishes even if I bump i up to 100.
If I uninstall Chrome 79 and install Chrome 78 from an archive, the tests run to completion and the window remains responsive for the whole run.
Versions
Cypress 3.4.1 - 3.8.0 (at least–I didn’t try anything older) Chrome Version 79.0.3945.88 (Official Build) (64-bit) Ubuntu 18.04.3 LTS
This is not seen in Chrome 79 on Mac or Windows
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 19 (9 by maintainers)
Looks like the performance is specific to Chrome 79, not Cypress. 😦 https://support.google.com/chrome/thread/24842699?hl=en
@jennifer-shehane I got some performance issues on Chrome 79+ with Cypress 3.6.1 and 3.8.1 on Ubuntu, too. Setting DEBUG=cypress:* on the CLI generates tons of logs. Are there any particular items on the log that may indicate performance issues in this case?
I fixed the issue by breaking down the spec files into smaller tests.
I’m able to use Chrome 80 on Ubuntu without noticing any lagging or freezing.
There is an open Chromium bug involving freezing in Chrome 79 in Linux here: https://bugs.chromium.org/p/chromium/issues/detail?id=1036742
There is a more generic bug involving freezing in Chrome 79 on non-Linux machines here: https://bugs.chromium.org/p/chromium/issues/detail?id=1036427
For now we’re treating this as a bug in Chrome.
Please open a new issue if you’re ‘freezing’/performance is affected also on Chrome browser <79. Follow the instructions here to determine if the performance degrades on Chrome browsers <79.
such problem on cypress/browsers:node12.6.0-chrome75