From fa811ab85fe3de985195f2246a9c56f5e899fe31 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Mon, 26 Feb 2024 18:52:27 +0000 Subject: [PATCH] Bump to ui-test:1.7.0-alpha03, add parameter name Change-Id: Ib1bbe4ad0d823c632d387587aa55c5eeb39e4b8d --- .../ui/NiaAppScreenSizesScreenshotTests.kt | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppScreenSizesScreenshotTests.kt b/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppScreenSizesScreenshotTests.kt index 2a2f7bb63..61e88286f 100644 --- a/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppScreenSizesScreenshotTests.kt +++ b/app/src/testDemo/kotlin/com/google/samples/apps/nowinandroid/ui/NiaAppScreenSizesScreenshotTests.kt @@ -141,18 +141,16 @@ class NiaAppScreenSizesScreenshotTests { LocalInspectionMode provides true, ) { DeviceConfigurationOverride( - DeviceConfigurationOverride.ForcedSize(DpSize(width, height)), + override = DeviceConfigurationOverride.ForcedSize(DpSize(width, height)), ) { - BoxWithConstraints { - NiaTheme { - NiaApp( - windowSizeClass = WindowSizeClass.calculateFromSize( - DpSize(maxWidth, maxHeight), - ), - networkMonitor = networkMonitor, - userNewsResourceRepository = userNewsResourceRepository, - ) - } + NiaTheme { + NiaApp( + windowSizeClass = WindowSizeClass.calculateFromSize( + DpSize(width, height), + ), + networkMonitor = networkMonitor, + userNewsResourceRepository = userNewsResourceRepository, + ) } } }