-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[BUG] Screenshot tests differences between headless and headful #11177
Comments
6 tasks
I can repro this. Missing step: 2.5. Run yarn start |
@bvaughn: sent you a PR with minor test fixes: bvaughn/planner#14 |
Oh that’s very kind. Thank you! |
Let's see whether we can fix the situation with Page.setFontFamilies. |
For reference, upstream patch: https://chromium-review.googlesource.com/c/chromium/src/+/3388550 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context:
Code Snippet
Code to reproduce this problem is available here:
https://github.com/bvaughn/planner
This is a planning app that renders to an HTML canvas.
Repro steps
yarn install
andyarn playwright:install
yarn start
yarn test:e2e
(in another terminal) and observe successplaywright.config.js
to changeheadless
tofalse
yarn test:e2e
and observe failuresDescribe the bug
There are subtle text rendering differences between headless and headful runs that cause tests to fail. I've experimented with increasing the
expect.toMatchSnapshot.threshold
value up to0.9
but at this point, legitimate failures easily slip through. (e.g. I can change the date header formats to add a "1" and the snapshot doesn't even pick it up.)The text was updated successfully, but these errors were encountered: