nowinandroid icon indicating copy to clipboard operation
nowinandroid copied to clipboard

Add accompanist/testharness for checking navigation UI

Open alexvanyo opened this issue 3 years ago • 0 comments

Adds a usage of accompanist/testharnness to force a given DpSize for its content, overriding the density if necessary to ensure that the size is achieved. This allows testing UI at arbitrary sizes on arbitrary emulators, lessening the need for using multiple emulators at different sizes (and filtering tests) when Android-specific window size has been hoisted appropriately.

The initial test using it is a test for checking whether or not the navigation bar or navigation rail is being shown, and these tests can run on any emulator.

alexvanyo avatar Nov 29 '22 21:11 alexvanyo