-
Notifications
You must be signed in to change notification settings - Fork 5
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
Support headless browsers #12
Comments
I made some progress on this. @joeyparrish please take a look at ppaneksamsung@b7987a7 if you'll have some time and share your opinion if this approach is correct. I'm still working on this because a lot shaka-player's tests fail, for example:
|
Thanks for working on this! I'll take a look at your fork soon. For the purposes of this, you can ignore "TextDisplayer layout" failures. Those Shaka Player tests are newly-enabled by this module, and it's possible that our thresholds for passing screenshots are too high. (Screenshots depend on rendering, which depends on your GPU, so small differences are to be expected on the edges of things.) You can disable them for now in Shaka Player by editing Or you can modify the threshold (and send a PR to Shaka Player) by editing the same file and changing |
I think your changes so far look perfect to me. Please send a PR when you are ready! |
Okay, I sent a PR. To summarize:
In case of Chrome Headless, 5 of fails can be caused by
Basing on above, I think that there are no issues with headless browsers itself. |
The screenshots for Edge on Linux are completely missing. We don't have that combination in our test infrastructure yet. So those 29 are expected until somebody adds them. Sorry for that! The screenshot tests are only very recently available outside the Google test lab, and we're still dealing with a few issues like that. If you want to send a PR with adjustments to the threshold for screenshot similarity, that would be appreciated! |
Your feature was just released in v1.4.0. If you update the dependency in shaka-player and send a PR there, that should make the headless versions available in Shaka tests again. Thanks! |
Developers working with Shaka Player have always been able to launch headless versions of browsers, for example with
--browsers ChromeHeadless
. Since Shaka Player started using this launcher, users can no longer do that. (Though--use-xvfb
is still available for Linux.)We should support headless browser variants where possible.
The text was updated successfully, but these errors were encountered: