From 7b5b7c64c1e72e53cbab2634f9c92d17741417f9 Mon Sep 17 00:00:00 2001 From: Jaehwa Noh Date: Sat, 13 Apr 2024 14:58:23 +0900 Subject: [PATCH] Find topic by onNodeWithContentDescription. Change-Id: Iefc97fd9e52227f51f7d40f8c10cb4878cde90c0 --- .../apps/nowinandroid/feature/foryou/ForYouScreenTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 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..4ad08d561 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 @@ -128,7 +128,7 @@ class ForYouScreenTest { testData.forEach { testTopic -> composeTestRule - .onNodeWithText(testTopic.topic.name) + .onNodeWithContentDescription(testTopic.topic.name) .assertExists() .assertHasClickAction() } @@ -175,7 +175,7 @@ class ForYouScreenTest { followableTopicTestData.forEach { testTopic -> composeTestRule - .onNodeWithText(testTopic.topic.name) + .onNodeWithContentDescription(testTopic.topic.name) .assertExists() .assertHasClickAction() }