Skip to content

Commit

Permalink
POC roborazzi update removing checks that are also done with the scre…
Browse files Browse the repository at this point in the history
…enshots
  • Loading branch information
jeprubio committed Sep 28, 2023
1 parent 7599217 commit da6d038
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ internal class PasswordInputKtTest {
`when PasswordInput`()

`then screenshot is OK`()
`then the password is not visible`()
}

@Test
Expand All @@ -38,7 +37,6 @@ internal class PasswordInputKtTest {
`when the visibility button is clicked`()

`then screenshot is OK`()
`then the password is visible`()
}

@Test
Expand All @@ -48,7 +46,6 @@ internal class PasswordInputKtTest {
`when the visibility button is clicked`(times = 2)

`then screenshot is OK`()
`then the password is not visible`()
}

private fun TestScope.`given PasswordInput`() {
Expand All @@ -73,14 +70,6 @@ internal class PasswordInputKtTest {
}
}

private fun TestScope.`then the password is not visible`() {
composeTestRule.onNodeWithText(textValue).assertDoesNotExist()
}

private fun TestScope.`then the password is visible`() {
composeTestRule.onNodeWithText(textValue).assertIsDisplayed()
}

private fun `then screenshot is OK`() {
composeTestRule.onRoot()
.captureRoboImage(ScreenshotUtils.getScreenshotName())
Expand Down

0 comments on commit da6d038

Please sign in to comment.