Change-Id: I335f9f5da1ff3f2574acca8e3fcb27b949a07c7a
pull/1230/head
Don Turner 8 months ago
parent 2d610b0775
commit 655aebccdc

@ -25,6 +25,7 @@ import androidx.compose.ui.test.DeviceConfigurationOverride
import androidx.compose.ui.test.ForcedSize import androidx.compose.ui.test.ForcedSize
import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithTag import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onRoot
import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.DpSize import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.dp
@ -139,9 +140,6 @@ class NiaAppScreenSizesScreenshotTests {
} }
private fun testNiaAppScreenshotWithSize(width: Dp, height: Dp, screenshotName: String) { private fun testNiaAppScreenshotWithSize(width: Dp, height: Dp, screenshotName: String) {
// TODO: Remove this when https://issuetracker.google.com/issues/327149166 is fixed
val appTestTag = "APP"
composeTestRule.setContent { composeTestRule.setContent {
CompositionLocalProvider( CompositionLocalProvider(
LocalInspectionMode provides true, LocalInspectionMode provides true,
@ -164,7 +162,7 @@ class NiaAppScreenSizesScreenshotTests {
} }
} }
composeTestRule.onNodeWithTag(appTestTag) composeTestRule.onRoot()
.captureRoboImage( .captureRoboImage(
"src/testDemo/screenshots/$screenshotName.png", "src/testDemo/screenshots/$screenshotName.png",
roborazziOptions = DefaultRoborazziOptions, roborazziOptions = DefaultRoborazziOptions,

@ -9,7 +9,7 @@ androidxAppCompat = "1.6.1"
androidxBrowser = "1.6.0" androidxBrowser = "1.6.0"
androidxComposeBom = "2024.02.00" androidxComposeBom = "2024.02.00"
androidxComposeCompiler = "1.5.8" androidxComposeCompiler = "1.5.8"
androidxComposeUiTest = "1.7.0-alpha03" androidxComposeUiTest = "1.7.0-alpha05"
androidxComposeRuntimeTracing = "1.0.0-beta01" androidxComposeRuntimeTracing = "1.0.0-beta01"
androidxCore = "1.12.0" androidxCore = "1.12.0"
androidxCoreSplashscreen = "1.0.1" androidxCoreSplashscreen = "1.0.1"

Loading…
Cancel
Save