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( Icon(
imageVector = NiaIcons.Add, imageVector = NiaIcons.Add,
contentDescription = stringResource( 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( Icon(
imageVector = NiaIcons.Check, imageVector = NiaIcons.Check,
contentDescription = stringResource( 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() .assertIsDisplayed()
composeTestRule composeTestRule
.onAllNodesWithContentDescription(interestsTopicCardFollowButton) .onAllNodesWithContentDescription(interestsTopicCardUnfollowButton)
.assertCountEquals(numberOfUnfollowedTopics) .assertCountEquals(numberOfUnfollowedTopics)
} }

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

Loading…
Cancel
Save