浏览代码

try with thread sleep

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 11 月之前
父节点
当前提交
c8bf86cf8d
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      app/src/androidTest/java/com/owncloud/android/ui/trashbin/TrashbinActivityIT.kt

+ 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)
             }
         }