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

chore: ensure consistent toEqualImage() resolution when running on hidpi displays #3018

Merged
merged 1 commit into from Apr 8, 2024

Conversation

mattjennings
Copy link
Contributor

===:clipboard: PR Checklist :clipboard:===

  • 📌 issue exists in github for these changes
  • 🔬 existing tests still pass
  • 🙈 code conforms to the style guide
  • 📐 new tests written and passing / old tests updated with new scenario(s)
  • 📄 changelog entry added (or not needed)

==================

Some tests were failing when running on my macbook because the resolution of images from toEqualImage() were 2x what they should be. Simple fix was to set the devicePixelRatio of the browser to 1 at the start of the tests.

@github-actions github-actions bot added the bug This issue describes undesirable, incorrect, or unexpected behavior label Apr 7, 2024
Copy link

Deploying excaliburjs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0666276
Status: ✅  Deploy successful!
Preview URL: https://973c6e85.excaliburjs.pages.dev
Branch Preview URL: https://fix-tests-on-hidpi-device.excaliburjs.pages.dev

View logs

@eonarheim eonarheim merged commit 12ee84f into main Apr 8, 2024
8 of 9 checks passed
@eonarheim eonarheim deleted the fix/tests-on-hidpi-device branch April 8, 2024 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants