Skip to content

Commit 392332a

Browse files
wip
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
1 parent 7bfa679 commit 392332a

3 files changed

Lines changed: 2 additions & 9 deletions

File tree

app/src/androidTest/java/com/owncloud/android/AbstractIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

app/src/androidTest/java/com/owncloud/android/ScreenshotsIT.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

app/src/androidTest/java/com/owncloud/android/ui/dialog/DialogFragmentIT.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
package com.owncloud.android.ui.dialog
1010

11-
import android.Manifest
1211
import android.accounts.Account
1312
import android.accounts.AccountManager
1413
import android.app.Dialog
@@ -27,7 +26,6 @@ import androidx.test.espresso.Espresso.onView
2726
import androidx.test.espresso.assertion.ViewAssertions.matches
2827
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
2928
import androidx.test.espresso.matcher.ViewMatchers.isRoot
30-
import androidx.test.rule.GrantPermissionRule
3129
import com.google.android.material.bottomsheet.BottomSheetBehavior
3230
import com.google.gson.Gson
3331
import com.google.gson.reflect.TypeToken
@@ -76,7 +74,6 @@ import com.owncloud.android.utils.theme.CapabilityUtils
7674
import com.owncloud.android.utils.theme.ViewThemeUtils
7775
import io.mockk.mockk
7876
import org.junit.After
79-
import org.junit.Rule
8077
import org.junit.Test
8178
import java.net.URI
8279
import 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()

0 commit comments

Comments
 (0)