Fixes an intermittently failing test that seems to be affected by the device pixel ratio.
👩💻 Reviewer Notes
This test returns 0.5 on my Macbook Pro, since the test environment gets the same device pixel ratio as my screen (2).
📑 Test Plan
The RtlScrollConverter test should pass in all environments.
✅ Checklist
General
[x] I have included a change request file using $ yarn change
[ ] I have added tests for my changes.
[x] I have tested my changes.
[ ] I have updated the project documentation to reflect my changes.
[x] I have read the CONTRIBUTING documentation and followed the standards for this project.
⏭ Next Steps
I encountered this bug while testing #6847, but it's present on the main branch as well. Perhaps there's a way to override the behavior that's causing the test runner to use the host's display properties?
Pull Request
📖 Description
Fixes an intermittently failing test that seems to be affected by the device pixel ratio.
👩💻 Reviewer Notes
This test returns
0.5
on my Macbook Pro, since the test environment gets the same device pixel ratio as my screen (2
).📑 Test Plan
The
RtlScrollConverter
test should pass in all environments.✅ Checklist
General
$ yarn change
⏭ Next Steps
I encountered this bug while testing #6847, but it's present on the main branch as well. Perhaps there's a way to override the behavior that's causing the test runner to use the host's display properties?