mirror of
https://github.com/bitwarden/android.git
synced 2026-11-19 17:40:12 -06:00
Change Create Account span texts to buttons for keyboard nav (#1357)
This commit is contained in:
committed by
Álison Fernandes
parent
04ac479e7d
commit
decd6a24eb
+18
@@ -287,6 +287,24 @@ class CreateAccountScreenTest : BaseComposeTest() {
|
||||
.assertCountEquals(2)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `terms of service click should send TermsClick action`() {
|
||||
composeTestRule
|
||||
.onNodeWithText("Terms of Service")
|
||||
.performScrollTo()
|
||||
.performClick()
|
||||
verify { viewModel.trySendAction(CreateAccountAction.TermsClick) }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `privacy policy click should send PrivacyPolicyClick action`() {
|
||||
composeTestRule
|
||||
.onNodeWithText("Privacy Policy")
|
||||
.performScrollTo()
|
||||
.performClick()
|
||||
verify { viewModel.trySendAction(CreateAccountAction.PrivacyPolicyClick) }
|
||||
}
|
||||
|
||||
companion object {
|
||||
private const val TEST_INPUT = "input"
|
||||
private val DEFAULT_STATE = CreateAccountState(
|
||||
|
||||
Reference in New Issue
Block a user