Skip to content

Commit

Permalink
Fix reversed follow/unfollow states in InterestsItem-ToggleButton con…
Browse files Browse the repository at this point in the history
…tentDescription.
  • Loading branch information
yongsuk44 committed May 10, 2024
1 parent 7f2ce57 commit c16940a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ 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,
),
)
},
checkedIcon = {
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,
),
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class InterestsScreenTest {
.assertIsDisplayed()

composeTestRule
.onAllNodesWithContentDescription(interestsTopicCardFollowButton)
.onAllNodesWithContentDescription(interestsTopicCardUnfollowButton)
.assertCountEquals(numberOfUnfollowedTopics)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@ class SearchScreenTest {

composeTestRule
.onAllNodesWithContentDescription(followButtonContentDesc)
.assertCountEquals(2)
.assertCountEquals(1)
composeTestRule
.onAllNodesWithContentDescription(unfollowButtonContentDesc)
.assertCountEquals(1)
.assertCountEquals(2)
}

@Test
Expand Down

0 comments on commit c16940a

Please sign in to comment.