Describe the bug
Since Robolectric supports screenshot testing via Robolectric native graphics, and Robolectric supports ActivityScenarios, this library should work with it for everything except Activities, cause most rules use adb -> work only on devices.
However, although everything works as expected, that does not seem the case with orientation Landscape.
That needs to be handled differently when running on the JVM with Robolectric
Environment
The setup in which the bug is reproducible:
Device or Emulator or JVM: JVM
API level: Any
AndroidUiTestingUtils version: All
Affected Component: Composable, AndroidView, Fragment
Buggy Configuration: Orientation
Expected behavior
Orientation also works when using Robolectric
Additional context
Using RuntimeEnvironment.setQualifiers("+land") when running on the JVM in setInitialOrientation() fixes the issue
Describe the bug Since Robolectric supports screenshot testing via Robolectric native graphics, and Robolectric supports ActivityScenarios, this library should work with it for everything except Activities, cause most rules use adb -> work only on devices.
However, although everything works as expected, that does not seem the case with orientation Landscape. That needs to be handled differently when running on the JVM with Robolectric
Environment The setup in which the bug is reproducible:
Expected behavior Orientation also works when using Robolectric
Additional context Using RuntimeEnvironment.setQualifiers("+land") when running on the JVM in setInitialOrientation() fixes the issue