We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When doing screenshots of composables, the screenshot should not have display the shadow of the Toolbar
When doing screenshots of composables there is gradient (shadow) at the top of the image.
@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
5.14.1
Using emulator with Android 32
The text was updated successfully, but these errors were encountered:
The workaround I found is to remove the Toolbar setting a theme to the test application via the src/androidTest/AndroidManifest.xml:
src/androidTest/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"> <application android:theme="@android:style/Theme.Material.Light.NoActionBar" /> </manifest>
Sorry, something went wrong.
No branches or pull requests
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
Record the screenshots
Open the screenshots
Version of the library
5.14.1
Using emulator with Android 32
The text was updated successfully, but these errors were encountered: