diff --git a/owncloudApp/src/androidTest/java/com/owncloud/android/files/SortBottomSheetFragmentTest.kt b/owncloudApp/src/androidTest/java/com/owncloud/android/files/SortBottomSheetFragmentTest.kt index cccb370e780..0b7f9ad8f38 100644 --- a/owncloudApp/src/androidTest/java/com/owncloud/android/files/SortBottomSheetFragmentTest.kt +++ b/owncloudApp/src/androidTest/java/com/owncloud/android/files/SortBottomSheetFragmentTest.kt @@ -38,6 +38,7 @@ import io.mockk.every import io.mockk.mockk import io.mockk.verify import org.junit.Before +import org.junit.Ignore import org.junit.Test class SortBottomSheetFragmentTest { @@ -57,6 +58,7 @@ class SortBottomSheetFragmentTest { } @Test + @Ignore("Flaky test") fun test_initial_view() { onView(withId(R.id.title)) .inRoot(RootMatchers.isDialog()) @@ -78,12 +80,14 @@ class SortBottomSheetFragmentTest { } @Test + @Ignore("Flaky test") fun test_sort_by_name_click() { onView(withId(R.id.sort_by_name)).inRoot(RootMatchers.isDialog()).perform(ViewActions.click()) verify { fragmentListener.onSortSelected(SortType.SORT_TYPE_BY_NAME) } } @Test + @Ignore("Flaky test") fun test_sort_by_date_click() { onView(withId(R.id.sort_by_date)).inRoot(RootMatchers.isDialog()).perform(ViewActions.click()) verify { fragmentListener.onSortSelected(SortType.SORT_TYPE_BY_DATE) } diff --git a/owncloudApp/src/androidTest/java/com/owncloud/android/files/details/FileDetailsFragmentTest.kt b/owncloudApp/src/androidTest/java/com/owncloud/android/files/details/FileDetailsFragmentTest.kt index 20c9eb1ad57..03d1816b732 100644 --- a/owncloudApp/src/androidTest/java/com/owncloud/android/files/details/FileDetailsFragmentTest.kt +++ b/owncloudApp/src/androidTest/java/com/owncloud/android/files/details/FileDetailsFragmentTest.kt @@ -15,10 +15,10 @@ import com.owncloud.android.presentation.files.operations.FileOperationsViewMode import com.owncloud.android.sharing.shares.ui.TestShareFileActivity import com.owncloud.android.testutil.OC_ACCOUNT import com.owncloud.android.testutil.OC_FILE -import com.owncloud.android.testutil.OC_FILE_WITH_SYNC_INFO_AVAILABLE_OFFLINE import com.owncloud.android.testutil.OC_FILE_WITH_SYNC_INFO import com.owncloud.android.testutil.OC_FILE_WITH_SYNC_INFO_AND_SPACE import com.owncloud.android.testutil.OC_FILE_WITH_SYNC_INFO_AND_WITHOUT_PERSONAL_SPACE +import com.owncloud.android.testutil.OC_FILE_WITH_SYNC_INFO_AVAILABLE_OFFLINE import com.owncloud.android.utils.DisplayUtils import com.owncloud.android.utils.matchers.assertVisibility import com.owncloud.android.utils.matchers.isDisplayed @@ -28,6 +28,7 @@ import io.mockk.every import io.mockk.mockk import kotlinx.coroutines.flow.MutableStateFlow import org.junit.Before +import org.junit.Ignore import org.junit.Test import org.koin.androidx.viewmodel.dsl.viewModel import org.koin.core.context.startKoin @@ -140,6 +141,7 @@ class FileDetailsFragmentTest { } @Test + @Ignore("Flaky test") fun verifyTests() { R.id.fdCreatedLabel.withText(R.string.filedetails_created) R.id.fdCreated.withText(DisplayUtils.unixTimeToHumanReadable(currentFile.value?.file?.creationTimestamp!!))