From e9c64f3147f0bd1354877c00797fe7187ea7c35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Moczkowski?= Date: Wed, 4 Oct 2023 11:04:44 +0200 Subject: [PATCH] Fix InterestsScreenTest Change-Id: I283f7c84230b31a0c1ad4b6f9018df2cfb99c6bf --- .../apps/nowinandroid/interests/InterestsScreenTest.kt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/feature/interests/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsScreenTest.kt b/feature/interests/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsScreenTest.kt index 492e91fa37..1de6fac156 100644 --- a/feature/interests/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsScreenTest.kt +++ b/feature/interests/src/androidTest/kotlin/com/google/samples/apps/nowinandroid/interests/InterestsScreenTest.kt @@ -74,7 +74,10 @@ class InterestsScreenTest { fun interestsWithTopics_whenTopicsFollowed_showFollowedAndUnfollowedTopicsWithInfo() { composeTestRule.setContent { InterestsScreen( - uiState = InterestsUiState.Interests(topics = followableTopicTestData), + uiState = InterestsUiState.Interests( + selectedTopicId = null, + topics = followableTopicTestData, + ), ) } @@ -108,8 +111,9 @@ class InterestsScreenTest { private fun InterestsScreen(uiState: InterestsUiState) { InterestsScreen( uiState = uiState, - followTopic = { _, _ -> }, - onTopicClick = {}, + followTopic = { _, _ -> /* no-op */ }, + onTopicClick = { /* no-op */ }, + detailsPane = { /* no-op */ }, ) } }