Browse Source

try with thread sleep

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 11 months ago
parent
commit
c8bf86cf8d

+ 6 - 0
app/src/androidTest/java/com/owncloud/android/ui/trashbin/TrashbinActivityIT.kt

@@ -57,6 +57,7 @@ class TrashbinActivityIT : AbstractIT() {
             sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
             onIdleSync {
                 sut.runOnUiThread { sut.loadFolder() }
+                shortSleep()
                 screenshot(sut)
             }
         }
@@ -71,6 +72,7 @@ class TrashbinActivityIT : AbstractIT() {
             sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
             onIdleSync {
                 sut.runOnUiThread { sut.loadFolder() }
+                shortSleep()
                 screenshot(sut)
             }
         }
@@ -85,6 +87,7 @@ class TrashbinActivityIT : AbstractIT() {
             sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
             onIdleSync {
                 sut.runOnUiThread { sut.loadFolder() }
+                shortSleep()
                 screenshot(sut)
             }
         }
@@ -99,6 +102,7 @@ class TrashbinActivityIT : AbstractIT() {
             sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
             onIdleSync {
                 sut.runOnUiThread { sut.showInitialLoading() }
+                shortSleep()
                 screenshot(sut)
             }
         }
@@ -113,6 +117,7 @@ class TrashbinActivityIT : AbstractIT() {
             sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
             onIdleSync {
                 sut.runOnUiThread { sut.showUser() }
+                shortSleep()
                 screenshot(sut)
             }
         }
@@ -138,6 +143,7 @@ class TrashbinActivityIT : AbstractIT() {
             sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
             onIdleSync {
                 sut.runOnUiThread { sut.showUser() }
+                shortSleep()
                 screenshot(sut)
             }
         }