Browse Source

Do not use images for tests, as text placeholder tends to get rendered randomly

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 years ago
parent
commit
933ed34c49

+ 2 - 2
src/androidTest/java/com/owncloud/android/ui/fragment/OCFileListFragmentStaticServerIT.kt

@@ -49,8 +49,8 @@ class OCFileListFragmentStaticServerIT : AbstractIT() {
     fun showFiles() {
         val sut = testActivityRule.launchActivity(null)
 
-        val textFile = OCFile("/1.md", "00000001")
-        textFile.mimeType = "text/markdown"
+        val textFile = OCFile("/1.png", "00000001")
+        textFile.mimeType = "image/png"
         textFile.fileLength = 1024000
         textFile.modificationTimestamp = 1188206955000
         textFile.parentId = sut.storageManager.getFileByEncryptedRemotePath("/").fileId

+ 4 - 4
src/androidTest/java/com/owncloud/android/ui/trashbin/TrashbinLocalRepository.kt

@@ -47,10 +47,10 @@ class TrashbinLocalRepository(val testCase: TrashbinActivityIT.TestCase) : Trash
                 val files = ArrayList<Any>()
                 files.add(
                     TrashbinFile(
-                        "test.md",
-                        "text/markdown",
-                        "/trashbin/test.md",
-                        "subFolder/test.md",
+                        "test.png",
+                        "image/png",
+                        "/trashbin/test.png",
+                        "subFolder/test.png",
                         1395847838, // random date
                         1395847908 // random date
                     )