feat(android): add a screenshot test for NetworkPosts

This commit is contained in:
Harsh Shandilya 2024-09-02 12:38:26 +05:30
parent cc5b95e9c8
commit 784dcf16f8
4 changed files with 47 additions and 0 deletions

View file

@ -26,6 +26,7 @@ plugins {
alias(libs.plugins.kotlin.composeCompiler)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.navigation.safeargs)
alias(libs.plugins.screenshot)
}
android {
@ -40,6 +41,7 @@ android {
applicationIdSuffix = ".internal"
debuggable(true)
}
experimentalProperties["android.experimental.enableScreenshotTest"] = true
}
baselineProfile {
@ -119,6 +121,8 @@ dependencies {
kapt(libs.dagger.compiler)
screenshotTestImplementation(libs.androidx.compose.ui.tooling)
addTestDependencies(project)
androidTestImplementation(libs.androidx.test.espresso.core)
androidTestImplementation(libs.androidx.test.uiautomator)