-
Notifications
You must be signed in to change notification settings - Fork 360
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
Component test do not wait for initial compilation using Electron #1031
Comments
The problem you describe will not be influenced by You did not say which version of Cypress you are using. If it is not Cypress I would guess that the reason for Chrome resulting in a better outcome than Electron, would be that Electron is bundled into Cypress whereas Chrome is not, so starting Chrome would cause some delay in comparison. |
We were on 12.x, but we just upgraded to 13.2. I will give it a shot with the new version and let you know. |
Great call. You are absolutely right. After the upgrade, the tests run in Electron with no issue 🤯 Thanks for pointing that out! I would not have thought to go back and try again just because of the Cypress upgrade. |
Good to hear that you issue is resolved! The Electron update has resolved some other issues as well where it wasn't immediately obvious that would be the case. Thanks for the update and closing the case! |
I am hookup up a GitHub Action to run my Cypress component tests for Angular. I started out using the default browser (electron), and I found that my tests would run fine, but the first test kept telling me that it had timed out.
The build output would look something like this:

Followed by all of the Angular compilation output:

...

And then all subsequent tests would pass.
I racked my brain for quite a while on this, and then finally, I tried simply switching to chrome. To my surprise, it worked. Every time, it seems to work with chrome, but fail with electron. The difference appears to be that with chrome, it waits until Angular compilation is done before attempting to see if the first test timed out.
Chrome output:

...

This seems like a bug to me. With component tests for Angular, chrome waits for the Angular compilation to finish before starting the test timeout timer. Electron does not.
Full step being used:
The text was updated successfully, but these errors were encountered: