-
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
Bug: Tests failing when run in series using Electron #1473
Comments
Likely what you're experiencing is a combination of two things:
As for the difference between Electron + Chrome - there is likely no reason for this, and what you're experiencing is just the difference in performance between running cypress with Also I would recommend reading this issue too as it goes into a lot of detail about the various modes of Cypress. For instance - do not run all your tests with |
@brian-mann Thanks a lot for the comprehensive answer. I'm fine for now -- since I plan to run these tests atomically in parallell (using |
When 3.0 releases you will see support for automatic spec parallelization and load balancing via our service. It's something we've worked a long time on. In the mean time you can manually chunk them yourself per this comment: |
Unfortunately we have to close this issue due to inactivity. Please comment if there is new information to provide concerning the original issue and we can reopen. |
Current behavior:
High-level circumstances
A suite of integration tests that works fine on Chrome 65 has issues with Electron 59.
More specifically, the 1st and 2nd tests pass without a hitch, but 3rd test fails to initialize properly, getting stuck on this message:
(PAGE LOAD) --waiting for new page to load--
Moreover, when this message is displayed, the visible web page is a left-over from the second test.
Desired behavior:
Tests should be be treated atomically even when run in series; but there appear to be a carrying over of state (and I'm not using any beforeEach or afterEach hooks). This may be an Electron bug, but I saw the same issue with the version of Electron bundled with Cypress 1.4.2
How to reproduce:
Not sure yet, but I'm working on this.
Additional Info (images, stack traces, etc)
Our app is really going wild with the POST requests near the end of a test, and that seems to result in
cy.reload(true)
failing:The text was updated successfully, but these errors were encountered: