Skip to content

Commit

Permalink
BIT-2207: Remove Rate the App row (#1228)
Browse files Browse the repository at this point in the history
Co-authored-by: David Perez <david@livefront.com>
  • Loading branch information
caleb-livefront and david-livefront authored Apr 4, 2024
1 parent 4e4add9 commit b1f1972
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,6 @@ private fun ContentColumn(
id = R.string.learn_about_organizations_description_long,
),
)
BitwardenExternalLinkRow(
text = stringResource(id = R.string.rate_the_app),
onConfirmClick = onRateTheAppClick,
dialogTitle = stringResource(id = R.string.continue_to_app_store),
dialogMessage = stringResource(id = R.string.rate_app_description_long),
)
BitwardenExternalLinkRow(
text = stringResource(R.string.give_feedback),
onConfirmClick = onGiveFeedbackClick,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,22 +201,6 @@ class AboutScreenTest : BaseComposeTest() {
}
}

@Suppress("MaxLineLength")
@Test
fun `on rate the app click should display confirmation dialog and confirm click should emit RateAppClick`() {
composeTestRule.onNode(isDialog()).assertDoesNotExist()
composeTestRule.onNodeWithText("Rate the app").performClick()
composeTestRule.onNode(isDialog()).assertExists()
composeTestRule
.onAllNodesWithText("Continue")
.filterToOne(hasAnyAncestor(isDialog()))
.performClick()
composeTestRule.onNode(isDialog()).assertDoesNotExist()
verify {
viewModel.trySendAction(AboutAction.RateAppClick)
}
}

@Test
fun `submit crash logs switch should be displayed according to state`() {
mutableStateFlow.update { it.copy(shouldShowCrashLogsButton = true) }
Expand Down

0 comments on commit b1f1972

Please sign in to comment.