Shot
Shot copied to clipboard
Removing the Toolbar shadow (elevation)
Expected behaviour
When doing screenshots of composables, the screenshot should not have display the shadow of the Toolbar
Actual behaviour
When doing screenshots of composables there is gradient (shadow) at the top of the image.
Steps to reproduce
- Create an compose snapshot test
@get:org.junit.Rule
val composeRule = androidx.compose.ui.test.junit4.createComposeRule()
@org.junit.Test
fun testContent() {
composeRule.setContent { $PREVIEW_NAME$() }
compareScreenshot(composeRule)
}
-
Record the screenshots
-
Open the screenshots
Version of the library
5.14.1
Using emulator with Android 32