Skip to content
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

Issue with Screenshot Discrepancies Across Different Windows Versions #2456

Open
Umesh-WW opened this issue Nov 8, 2024 · 0 comments
Open

Comments

@Umesh-WW
Copy link

Umesh-WW commented Nov 8, 2024

We are experiencing an issue with our UI test cases after updating Canvas from version 2.10.2 to 2.11.2. When running tests on Windows Server 2019, the UI snapshots generated do not match those generated on local systems like Windows 10 or 11.

Specifically, when running the same tests on Windows 10 or 11, we observe inconsistencies in text rendering on the UI, which we capture via Canvas. These differences are notable as yellow pixels appearing below the fonts.

We have attempted several workarounds, including disabling anti-aliasing and adjusting font quality by modifying the Canvas context, but these efforts have not resolved the issue.

It seems the problem may stem from differences in UI rendering or text measurement across different Windows versions. We would greatly appreciate any insights, suggestions, or potential Windows configuration changes that might help us address this inconsistency.

Example of Differences

Image
Image

Additional Information

We are using Node version 20.18.0, however when tried on Node 18.20.0 also we faced similar issues i.e. discrepancies between UI rendered on Windows 11 vs Windows server 2019. Apparently Canvas 2.11.2 is minimum recommended version of Canvas for Node 20 LTS version.

Any help, guidance, or comments on this issue would be highly appreciated.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant