-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Switch from PhantomJS to ChromeHeadless for JS tests #33296
Conversation
conflicting yarn.lock |
bah... forgot to pull master |
This will deliver more accurate results and avoid headaches while trying to debug PhantomJS-only test issues...
Firefox and Chromium return different values when evaluating "background-image", absolute URL vs relative URL. This fix adjusts the TestUtil to normalize the URL to absolute because the purpose of the test is just to check that the correct target image was set.
For CI we should look into https://github.com/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#environment-variables to avoid redownloading Chrome from mirrors for every run. We should cache this. The PhantomJS packages used to do that automatically.
|
idea: add chromium to the docker env that runs the JS tests, then set |
or bundle puppeteer in the global npm in the drone env, hoping that it will only download it once. will try locally |
e084085
to
b1fcd2e
Compare
just tried: Also if you set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 make test-js" it will no use the locally installed chromium. It seems we must download and provide the actual "chrome headless" version somewhere. |
not blocking any more, less important => backlog |
not working as I'd like to and no time to finish phantomjs is fine for now |
Description
Related Issue
Motivation and Context
How Has This Been Tested?
make test-js
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: