-
-
Notifications
You must be signed in to change notification settings - Fork 739
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
Make render tests more reliable #1007
Comments
I've experimented with jest and playwright to run the tests in the browser. |
I tried to use playwright with the modified version of render-test and browser-pool package to improve performance, but it's still just too slow. |
I'm reading |
It might be failing locally, but it passes on the CI server. |
I forgot to reference the relevant PR: #1018. |
This was just my misundestanding, sorry. https://github.com/Kanahiro/maplibre-gl-js/tree/%231007_browser_test/test/integration/browser I did
|
It might be an overkill to separate to folders as there are currently 3 tests, but I don't know, your call... |
Closing as I'm not planning to migrate the render tests to the browser at that point as it takes them too long to run. |
Motivation
Render tests are probably the most important and powerful tests we have to make sure things are not breaking.
Currently the tests are running in node environment using a lot of mocking of the browser code.
This is far from ideal as in some cases we can't relay on node env to provide the same results as the browser.
An example for this is #1002 and #1005 which shows the issue.
Design Alternatives
We should consider migrating the render test to use playwright/cypress/other browser runner for the tests.
After #1003 will be merged it should be much simpler to actually do this as the code is a lot simpler, hopefully.
Design
Still need to fully investigate what are our alternatives
Implementation
This should only affect the render tests.
The text was updated successfully, but these errors were encountered: