I'm trying out the new Compose Screenshot Testing https://developer.android.com/studio/preview/compose-screenshot-testing.
When I create reference images locally, then run the tests to validate the UI against these images, it passes.
However, when I edit my Github actions and include screenshot testing in my workflow, then it fails.
Looking at the artifact that is produced, I can't see any visible differences despite the report highlighting what the differences are.
I made sure the composable that is being tested via screenshot testing was not changed at the time of generating the reference image + at the time my workflow is run.
I'm not sure what's going on.
It's possible that the reference image created locally doesn't match the image created in the pipeline for testing due to differences in the environment. But I'm not sure if this is true or not. Given these tests aren't run on a device that rules out any differences on an emulator/device.