Browse Source

Mark failed tests

Signed-off-by: Alper Ozturk <alperozturk@lions-macbook.local>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Alper Ozturk 1 năm trước cách đây
mục cha
commit
1f391397c1

+ 3 - 0
app/src/androidTest/java/com/nextcloud/client/FileDisplayActivityScreenshotIT.kt

@@ -49,6 +49,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
         Manifest.permission.WRITE_EXTERNAL_STORAGE
         Manifest.permission.WRITE_EXTERNAL_STORAGE
     )
     )
 
 
+    // FIXME test fails
     @Test
     @Test
     @ScreenshotTest
     @ScreenshotTest
     fun open() {
     fun open() {
@@ -66,6 +67,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
         screenshot(sut)
         screenshot(sut)
     }
     }
 
 
+    // FIXME test fails
     @Test
     @Test
     @ScreenshotTest
     @ScreenshotTest
     fun showMediaThenAllFiles() {
     fun showMediaThenAllFiles() {
@@ -100,6 +102,7 @@ class FileDisplayActivityScreenshotIT : AbstractIT() {
         screenshot(fileDisplayActivity)
         screenshot(fileDisplayActivity)
     }
     }
 
 
+    // FIXME test fails
     @Test
     @Test
     @ScreenshotTest
     @ScreenshotTest
     fun drawer() {
     fun drawer() {

+ 3 - 0
app/src/androidTest/java/com/nmc/android/ui/LauncherActivityIT.kt

@@ -40,9 +40,12 @@ class LauncherActivityIT : AbstractIT() {
     @get:Rule
     @get:Rule
     val activityRule = ActivityScenarioRule(LauncherActivity::class.java)
     val activityRule = ActivityScenarioRule(LauncherActivity::class.java)
 
 
+
     @Test
     @Test
     fun verifyUIElements() {
     fun verifyUIElements() {
         waitForIdleSync()
         waitForIdleSync()
+
+        // FIXME test fails
         onView(withId(R.id.ivSplash)).check(matches(isCompletelyDisplayed()))
         onView(withId(R.id.ivSplash)).check(matches(isCompletelyDisplayed()))
         onView(withId(R.id.splashScreenBold)).check(matches(isCompletelyDisplayed()))
         onView(withId(R.id.splashScreenBold)).check(matches(isCompletelyDisplayed()))
         onView(withId(R.id.splashScreenNormal)).check(matches(isCompletelyDisplayed()))
         onView(withId(R.id.splashScreenNormal)).check(matches(isCompletelyDisplayed()))

+ 1 - 0
app/src/androidTest/java/com/owncloud/android/ui/LoginIT.kt

@@ -56,6 +56,7 @@ class LoginIT : AbstractIT() {
         ActivityScenario.launch(AuthenticatorActivity::class.java)
         ActivityScenario.launch(AuthenticatorActivity::class.java)
     }
     }
 
 
+    // FIXME test fails
     @Test
     @Test
     @Throws(InterruptedException::class)
     @Throws(InterruptedException::class)
     @Suppress("MagicNumber", "SwallowedException")
     @Suppress("MagicNumber", "SwallowedException")

+ 1 - 0
app/src/androidTest/java/com/owncloud/android/ui/activity/DrawerActivityIT.java

@@ -119,6 +119,7 @@ public class DrawerActivityIT extends AbstractIT {
 
 
         waitForIdleSync();
         waitForIdleSync();
 
 
+        // FIXME test fails
         assertEquals(account2, sut.getUser().get().toPlatformAccount());
         assertEquals(account2, sut.getUser().get().toPlatformAccount());
 
 
         onView(withId(R.id.switch_account_button)).perform(click());
         onView(withId(R.id.switch_account_button)).perform(click());

+ 2 - 0
app/src/androidTest/java/com/owncloud/android/ui/dialog/DialogFragmentIT.java

@@ -539,6 +539,8 @@ public class DialogFragmentIT extends AbstractIT {
 
 
         final SslCertificate certificate = new SslCertificate("foo", "bar", "2022/01/10", "2022/01/30");
         final SslCertificate certificate = new SslCertificate("foo", "bar", "2022/01/10", "2022/01/30");
         final SslError sslError = new SslError(SslError.SSL_UNTRUSTED, certificate);
         final SslError sslError = new SslError(SslError.SSL_UNTRUSTED, certificate);
+
+        // FIXME test fails
         final SslErrorHandler handler = Mockito.mock(SslErrorHandler.class);
         final SslErrorHandler handler = Mockito.mock(SslErrorHandler.class);
 
 
 
 

+ 2 - 0
app/src/androidTest/java/com/owncloud/android/utils/FileExportUtilsIT.kt

@@ -47,6 +47,7 @@ class FileExportUtilsIT : AbstractIT() {
 
 
         sut.exportFile("export.txt", "/text/plain", targetContext.contentResolver, null, file)
         sut.exportFile("export.txt", "/text/plain", targetContext.contentResolver, null, file)
 
 
+        // FIXME test fails
         assertTrue(expectedFile.exists())
         assertTrue(expectedFile.exists())
         assertEquals(file.length(), expectedFile.length())
         assertEquals(file.length(), expectedFile.length())
         assertTrue(expectedFile.delete())
         assertTrue(expectedFile.delete())
@@ -71,6 +72,7 @@ class FileExportUtilsIT : AbstractIT() {
 
 
         sut.exportFile("export.txt", "/text/plain", targetContext.contentResolver, ocFile, null)
         sut.exportFile("export.txt", "/text/plain", targetContext.contentResolver, ocFile, null)
 
 
+        // FIXME test fails
         assertTrue(expectedFile.exists())
         assertTrue(expectedFile.exists())
         assertEquals(file.length(), expectedFile.length())
         assertEquals(file.length(), expectedFile.length())
         assertTrue(expectedFile.delete())
         assertTrue(expectedFile.delete())