File tree Expand file tree Collapse file tree
app/src/androidTest/java/com/owncloud/android Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ public abstract class AbstractIT {
9393 @ Rule
9494 public final TestRule storagePermissionRule = GrantStoragePermissionRule .grant ();
9595
96+ // Not needed for API29, might needed for newer API
9697// @Rule
9798// public GrantPermissionRule notificationsPermissionRule = GrantPermissionRule.grant(Manifest.permission.POST_NOTIFICATIONS);
9899
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class ScreenshotsIT : AbstractIT() {
5555 OCFile (path).apply {
5656 storageManager.saveFile(this )
5757 }
58- onView(withId(R .id.list_root)).perform(click())
58+ // onView(withId(R.id.list_root)).perform(click())
5959
6060 onView(isRoot()).check(matches(isDisplayed()))
6161 Screengrab .screenshot(" 02_listView" )
Original file line number Diff line number Diff line change 88 */
99package com.owncloud.android.ui.dialog
1010
11- import android.Manifest
1211import android.accounts.Account
1312import android.accounts.AccountManager
1413import android.app.Dialog
@@ -27,7 +26,6 @@ import androidx.test.espresso.Espresso.onView
2726import androidx.test.espresso.assertion.ViewAssertions.matches
2827import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
2928import androidx.test.espresso.matcher.ViewMatchers.isRoot
30- import androidx.test.rule.GrantPermissionRule
3129import com.google.android.material.bottomsheet.BottomSheetBehavior
3230import com.google.gson.Gson
3331import com.google.gson.reflect.TypeToken
@@ -76,7 +74,6 @@ import com.owncloud.android.utils.theme.CapabilityUtils
7674import com.owncloud.android.utils.theme.ViewThemeUtils
7775import io.mockk.mockk
7876import org.junit.After
79- import org.junit.Rule
8077import org.junit.Test
8178import java.net.URI
8279import java.util.function.Supplier
@@ -86,11 +83,6 @@ class DialogFragmentIT : AbstractIT() {
8683 private val testClassName = " com.owncloud.android.ui.dialog.DialogFragmentIT"
8784 private val serverUrl = " https://nextcloud.localhost"
8885
89- @get:Rule
90- val permissionRule: GrantPermissionRule = GrantPermissionRule .grant(
91- Manifest .permission.POST_NOTIFICATIONS
92- )
93-
9486 @After
9587 fun quitLooperIfNeeded () {
9688 Looper .myLooper()?.quitSafely()
You can’t perform that action at this time.
0 commit comments