|
@@ -22,6 +22,8 @@ import org.junit.Before
|
|
import org.junit.Test
|
|
import org.junit.Test
|
|
|
|
|
|
class TrashbinActivityIT : AbstractIT() {
|
|
class TrashbinActivityIT : AbstractIT() {
|
|
|
|
+ private val testClassName = "com.owncloud.android.ui.trashbin.TrashbinActivityIT"
|
|
|
|
+
|
|
enum class TestCase {
|
|
enum class TestCase {
|
|
ERROR,
|
|
ERROR,
|
|
EMPTY,
|
|
EMPTY,
|
|
@@ -47,7 +49,8 @@ class TrashbinActivityIT : AbstractIT() {
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
onIdleSync {
|
|
onIdleSync {
|
|
sut.runOnUiThread { sut.loadFolder() }
|
|
sut.runOnUiThread { sut.loadFolder() }
|
|
- screenshotViaName(sut, "com.owncloud.android.ui.trashbin.TrashbinActivityIT_error")
|
|
|
|
|
|
+ val screenShotName = createName(testClassName + "_" + "error", "")
|
|
|
|
+ screenshotViaName(sut, screenShotName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -62,7 +65,8 @@ class TrashbinActivityIT : AbstractIT() {
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
onIdleSync {
|
|
onIdleSync {
|
|
sut.runOnUiThread { sut.loadFolder() }
|
|
sut.runOnUiThread { sut.loadFolder() }
|
|
- screenshotViaName(sut, "com.owncloud.android.ui.trashbin.TrashbinActivityIT_files")
|
|
|
|
|
|
+ val screenShotName = createName(testClassName + "_" + "files", "")
|
|
|
|
+ screenshotViaName(sut, screenShotName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -77,7 +81,8 @@ class TrashbinActivityIT : AbstractIT() {
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
onIdleSync {
|
|
onIdleSync {
|
|
sut.runOnUiThread { sut.loadFolder() }
|
|
sut.runOnUiThread { sut.loadFolder() }
|
|
- screenshotViaName(sut, "com.owncloud.android.ui.trashbin.TrashbinActivityIT_empty")
|
|
|
|
|
|
+ val screenShotName = createName(testClassName + "_" + "empty", "")
|
|
|
|
+ screenshotViaName(sut, screenShotName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -92,7 +97,8 @@ class TrashbinActivityIT : AbstractIT() {
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
onIdleSync {
|
|
onIdleSync {
|
|
sut.runOnUiThread { sut.showInitialLoading() }
|
|
sut.runOnUiThread { sut.showInitialLoading() }
|
|
- screenshotViaName(sut, "com.owncloud.android.ui.trashbin.TrashbinActivityIT_loading")
|
|
|
|
|
|
+ val screenShotName = createName(testClassName + "_" + "loading", "")
|
|
|
|
+ screenshotViaName(sut, screenShotName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -107,7 +113,8 @@ class TrashbinActivityIT : AbstractIT() {
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
onIdleSync {
|
|
onIdleSync {
|
|
sut.runOnUiThread { sut.showUser() }
|
|
sut.runOnUiThread { sut.showUser() }
|
|
- screenshotViaName(sut, "com.owncloud.android.ui.trashbin.TrashbinActivityIT_normalUser")
|
|
|
|
|
|
+ val screenShotName = createName(testClassName + "_" + "normalUser", "")
|
|
|
|
+ screenshotViaName(sut, screenShotName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -134,7 +141,8 @@ class TrashbinActivityIT : AbstractIT() {
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
sut.trashbinPresenter = TrashbinPresenter(trashbinRepository, sut)
|
|
onIdleSync {
|
|
onIdleSync {
|
|
sut.runOnUiThread { sut.showUser() }
|
|
sut.runOnUiThread { sut.showUser() }
|
|
- screenshotViaName(sut, "com.owncloud.android.ui.trashbin.TrashbinActivityIT_differentUser")
|
|
|
|
|
|
+ val screenShotName = createName(testClassName + "_" + "differentUser", "")
|
|
|
|
+ screenshotViaName(sut, screenShotName)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|