-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Tests are failing on local master and CI #13347
Comments
Reproduction steps: Image integration. It happens when the browser is not focused.
TableInsert. It also happens when the browser is not focused.
|
This can be fixed by adding:
At the beginning of that test. |
This one is tricky because it relies on DOM |
The 2 above tests fixed/disabled in commit 9496e5e. Seems that the |
Finally, I found what was causing the Draft branch (without updated tests for CC): https://github.com/ckeditor/ckeditor5/compare/ck/13347 This all problems are caused by the fact that for an unknown reason, the integration CI is running tests in a blurred Chrome window. Maybe we should try to handle this problem on the CI side by providing Apart from the above, I noticed plenty of misc and random errors like this:
|
What do you mean by "option to auto tests"? How does it help locally? |
Headless Chrome seems to be focused all the time. |
Whenever seeing that error please investigate a bit more into the error that caused this one. As discussed on Monday, @pomek noticed that the original error is also logged. Knowing the root cause of these TS problems would help us understand whether it's related to module augmentation (of which we're aware already) or someting new. |
Interesting. Are we aware of any other differences between real Chrome and Headless Chrome? Perhaps HC would be faster too, making CI jobs shorter (and more stable). But at the same time, if it changes something more and would make tests unrealistic, switching to Headless Chrome would make no sense ;| |
By random, I was talking about happening in different places on different files and after triggering tests multiple times it happened in different places almost every time without any changes in the code). |
I'm using headless chrome locally to run tests for a few years now and did not notice any changes except its just a focused tab (and this annoying window is not appearing when starting tests). |
In the past, we measured the time needed for executing tests using Headless Chrome and Chrome. It's more or less the same. But if we gain more stability, I am all for using HC instead of a standard browser. |
I was trying to fix the "rect" problem but finally, it won't work because I noticed that it's not about the page being focused or blurred but whether it is visible or in the background. Found this comment: karma-runner/karma-chrome-launcher#228 (comment) and tested it on our karma config and the tests started working. Without switching to ChromeHeadless. So this is another option, probably safer.
|
I also found this: https://github.com/karma-runner/karma-chrome-launcher/blob/master/index.js#L45-L47 Looks like by default, when running tests in Chrome, this flag should be enabled. Maybe we are overriding it? I'm not sure how |
@pomek can we close this issue? Or we should keep it open to keep info about |
☝️ it deserves to be extracted into a new issue. This issue is about failing tests. The new case could be about enabling additional flags in tests. |
Extracted: #13407. |
📝 Provide detailed reproduction steps (if any)
Some tests are failing
✔️ Expected result
Tests should complete without failure
❌ Actual result
CI is failing because of these errors.
❓ Possible solution
Reproduction steps in comments.
📃 Other details
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: