mirror of
https://github.com/bitwarden/android.git
synced 2025-01-30 19:53:47 +03:00
tests
This commit is contained in:
parent
22d83edfe7
commit
5061849210
1 changed files with 57 additions and 0 deletions
|
@ -1704,6 +1704,63 @@ class GeneratorScreenTest : BaseComposeTest() {
|
|||
.assertIsDisplayed()
|
||||
}
|
||||
|
||||
@Suppress("MaxLineLength")
|
||||
@Test
|
||||
fun `The full coach mark tour can be completed showing all steps`() {
|
||||
mutableEventFlow.tryEmit(GeneratorEvent.StartCoachMarkTour)
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("1 OF 6")
|
||||
.assertIsDisplayed()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("Next")
|
||||
.performClick()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("2 OF 6")
|
||||
.assertIsDisplayed()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("Next")
|
||||
.performClick()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("3 OF 6")
|
||||
.assertIsDisplayed()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("Next")
|
||||
.performClick()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("4 OF 6")
|
||||
.assertIsDisplayed()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("Next")
|
||||
.performClick()
|
||||
composeTestRule
|
||||
.onNodeWithText("5 OF 6")
|
||||
.assertIsDisplayed()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("Next")
|
||||
.performClick()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("6 OF 6")
|
||||
.assertIsDisplayed()
|
||||
|
||||
composeTestRule
|
||||
.onNodeWithText("Done")
|
||||
.performClick()
|
||||
|
||||
composeTestRule
|
||||
.onNode(isCoachMarkToolTip)
|
||||
.assertDoesNotExist()
|
||||
}
|
||||
|
||||
//endregion Random Word Tests
|
||||
|
||||
private fun updateState(state: GeneratorState) {
|
||||
|
|
Loading…
Add table
Reference in a new issue