Skip to content

Commit

Permalink
♻️ More idling resources
Browse files Browse the repository at this point in the history
Adding more `waitUntil` and hoping for the best
  • Loading branch information
igorescodro committed Oct 12, 2022
1 parent 2772cff commit 20f97f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions app/src/androidTest/java/com/escodro/alkaa/SearchFlowTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import com.escodro.alkaa.navigation.NavGraph
import com.escodro.designsystem.AlkaaTheme
import com.escodro.local.provider.DaoProvider
import com.escodro.test.DisableAnimationsRule
import com.escodro.test.waitUntilExists
import com.escodro.test.waitUntilNotExists
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.runTest
Expand Down Expand Up @@ -78,9 +77,6 @@ internal class SearchFlowTest : KoinTest {
onNode(hasSetTextAction()).performTextInput(query)
onAllNodesWithText(text = query, useUnmergedTree = true)[1].assertExists()

// Wait until the task is shown
waitUntilExists(hasText(FAKE_TASKS[0].title))

// Drop the first task and validate others are not shown
FAKE_TASKS.drop(1).forEach { task ->
// Validate all tasks are shown
Expand Down
1 change: 1 addition & 0 deletions app/src/androidTest/java/com/escodro/alkaa/TaskFlowTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ internal class TaskFlowTest : KoinTest {
pressBack()

// Reopen the task and validate if the alarm is on
waitUntilExists(hasText(taskName))
onNodeWithText(text = taskName, useUnmergedTree = true).performClick()
onNodeWithText(alarmArray[0]).assertDoesNotExist()
}
Expand Down

0 comments on commit 20f97f2

Please sign in to comment.