Issue#41 Remove waitForIdle since onNode already calls it

This commit is contained in:
Gergely Hegedus 2022-09-28 19:01:38 +03:00
parent f03c9f7bf2
commit a4b1e50f0f
3 changed files with 2 additions and 16 deletions

View file

@ -88,7 +88,6 @@ class AuthComposeInstrumentedTest {
robot.assertLoading()
composeTestRule.mainClock.autoAdvance = true
composeTestRule.waitForIdle()
navigationRobot.assertHomeScreen()
}
@ -101,7 +100,6 @@ class AuthComposeInstrumentedTest {
.assertUsername("banan")
.clickOnLogin()
composeTestRule.waitForIdle()
robot.assertErrorIsShown(R.string.password_is_invalid)
.assertNotLoading()
navigationRobot.assertAuthScreen()
@ -118,7 +116,6 @@ class AuthComposeInstrumentedTest {
.assertPassword("banan")
.clickOnLogin()
composeTestRule.waitForIdle()
robot.assertErrorIsShown(R.string.username_is_invalid)
.assertNotLoading()
navigationRobot.assertAuthScreen()
@ -144,7 +141,6 @@ class AuthComposeInstrumentedTest {
robot.assertLoading()
composeTestRule.mainClock.autoAdvance = true
composeTestRule.waitForIdle()
robot.assertErrorIsShown(R.string.credentials_invalid)
.assertNotLoading()
navigationRobot.assertAuthScreen()
@ -170,7 +166,6 @@ class AuthComposeInstrumentedTest {
robot.assertLoading()
composeTestRule.mainClock.autoAdvance = true
composeTestRule.waitForIdle()
robot.assertErrorIsShown(R.string.something_went_wrong)
.assertNotLoading()
navigationRobot.assertAuthScreen()