[#118] Fix backup verification UI

This commit is contained in:
Carter Jernigan 2021-12-09 15:03:01 -05:00 committed by GitHub
parent 8c514e8232
commit ca457b1116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 1 deletions

View File

@ -111,6 +111,20 @@ class BackupViewTest {
composeTestRule.onNode(hasText(getStringResource(R.string.new_wallet_4_button_retry))).performClick()
assertEquals(BackupStage.Seed, testSetup.getStage())
composeTestRule.onNode(hasText(getStringResource(R.string.new_wallet_3_button_finished))).performClick()
assertEquals(BackupStage.Test, testSetup.getStage())
// These verify that the test itself is re-displayed
composeTestRule.onNode(hasText(getStringResource(R.string.new_wallet_4_header_verify))).also {
it.assertExists()
}
composeTestRule.onNode(hasText(getStringResource(R.string.new_wallet_4_header_ouch))).also {
it.assertDoesNotExist()
}
}
@Test

View File

@ -155,7 +155,11 @@ private fun Test(
onNext()
}
currentSelectedTestChoice.none { null == it.value } -> {
TestFailure(onBack)
TestFailure {
// Clear the user's prior test inputs for the retest
selectedTestChoices.set(emptyMap())
onBack()
}
}
}
}