Fix reversed follow/unfollow states in InterestsItem-ToggleButton contentDescription.

pull/1424/head
yongsuk44 1 year ago
parent 7f2ce57c67
commit c16940a615

@ -70,7 +70,7 @@ fun InterestsItem(
Icon(
imageVector = NiaIcons.Add,
contentDescription = stringResource(
id = string.core_ui_interests_card_follow_button_content_desc,
id = string.core_ui_interests_card_unfollow_button_content_desc,
),
)
},
@ -78,7 +78,7 @@ fun InterestsItem(
Icon(
imageVector = NiaIcons.Check,
contentDescription = stringResource(
id = string.core_ui_interests_card_unfollow_button_content_desc,
id = string.core_ui_interests_card_follow_button_content_desc,
),
)
},

@ -93,7 +93,7 @@ class InterestsScreenTest {
.assertIsDisplayed()
composeTestRule
.onAllNodesWithContentDescription(interestsTopicCardFollowButton)
.onAllNodesWithContentDescription(interestsTopicCardUnfollowButton)
.assertCountEquals(numberOfUnfollowedTopics)
}

@ -157,10 +157,10 @@ class SearchScreenTest {
composeTestRule
.onAllNodesWithContentDescription(followButtonContentDesc)
.assertCountEquals(2)
.assertCountEquals(1)
composeTestRule
.onAllNodesWithContentDescription(unfollowButtonContentDesc)
.assertCountEquals(1)
.assertCountEquals(2)
}
@Test

Loading…
Cancel
Save