1
0
Fork 0
mirror of https://github.com/bitwarden/android.git synced 2025-01-30 19:53:47 +03:00
This commit is contained in:
Dave Severns 2025-01-24 16:04:12 -05:00
parent 22d83edfe7
commit 5061849210

View file

@ -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) {