Skip to content

Commit

Permalink
Another sleep in an Espresso test
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Sep 8, 2024
1 parent 612ba1b commit a544201
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.orgzly.android.espresso

import android.os.SystemClock
import androidx.core.net.toUri
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso
Expand Down Expand Up @@ -66,6 +67,7 @@ class GitRepoTest : OrgzlyTest() {
assertEquals(3, dataRepository.getBooks().size)
ActivityScenario.launch(MainActivity::class.java).use {
sync()
SystemClock.sleep(2000)
onBook(0, R.id.item_book_link_repo).check(ViewAssertions.matches(withText(repo.url)))
onBook(1, R.id.item_book_link_repo).check(ViewAssertions.matches(withText(repo.url)))
onBook(2, R.id.item_book_link_repo).check(ViewAssertions.matches(withText(repo.url)))
Expand Down

0 comments on commit a544201

Please sign in to comment.