From 115a68e72b7278ca21cc2929964f646b8c5ca8e0 Mon Sep 17 00:00:00 2001 From: Don Turner Date: Thu, 19 Sep 2024 07:44:59 -0700 Subject: [PATCH] Replace BoxWithConstraints with Box Change-Id: I63a54aa6c30c6a68beab66ffce77238e5156ee06 --- .../feature/foryou/ForYouScreenTest.kt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/feature/foryou/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreenTest.kt b/feature/foryou/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreenTest.kt index 5477493ef..c3ec5c560 100644 --- a/feature/foryou/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreenTest.kt +++ b/feature/foryou/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreenTest.kt @@ -17,7 +17,7 @@ package com.google.samples.apps.nowinandroid.feature.foryou import androidx.activity.ComponentActivity -import androidx.compose.foundation.layout.BoxWithConstraints +import androidx.compose.foundation.layout.Box import androidx.compose.ui.test.assertHasClickAction import androidx.compose.ui.test.assertIsEnabled import androidx.compose.ui.test.assertIsNotEnabled @@ -52,7 +52,7 @@ class ForYouScreenTest { @Test fun circularProgressIndicator_whenScreenIsLoading_exists() { composeTestRule.setContent { - BoxWithConstraints { + Box { ForYouScreen( isSyncing = false, onboardingUiState = OnboardingUiState.Loading, @@ -78,7 +78,7 @@ class ForYouScreenTest { @Test fun circularProgressIndicator_whenScreenIsSyncing_exists() { composeTestRule.setContent { - BoxWithConstraints { + Box { ForYouScreen( isSyncing = true, onboardingUiState = OnboardingUiState.NotShown, @@ -106,7 +106,7 @@ class ForYouScreenTest { val testData = followableTopicTestData.map { it.copy(isFollowed = false) } composeTestRule.setContent { - BoxWithConstraints { + Box { ForYouScreen( isSyncing = false, onboardingUiState = OnboardingUiState.Shown( @@ -149,7 +149,7 @@ class ForYouScreenTest { @Test fun topicSelector_whenSomeTopicsSelected_showsTopicChipsAndEnabledDoneButton() { composeTestRule.setContent { - BoxWithConstraints { + Box { ForYouScreen( isSyncing = false, onboardingUiState = @@ -196,7 +196,7 @@ class ForYouScreenTest { @Test fun feed_whenInterestsSelectedAndLoading_showsLoadingIndicator() { composeTestRule.setContent { - BoxWithConstraints { + Box { ForYouScreen( isSyncing = false, onboardingUiState = @@ -223,7 +223,7 @@ class ForYouScreenTest { @Test fun feed_whenNoInterestsSelectionAndLoading_showsLoadingIndicator() { composeTestRule.setContent { - BoxWithConstraints { + Box { ForYouScreen( isSyncing = false, onboardingUiState = OnboardingUiState.NotShown,