diff --git a/atox/src/androidTest/kotlin/IntegrationTest.kt b/atox/src/androidTest/kotlin/IntegrationTest.kt index e8038ebb..27cc1b1b 100644 --- a/atox/src/androidTest/kotlin/IntegrationTest.kt +++ b/atox/src/androidTest/kotlin/IntegrationTest.kt @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2020-2022 Robin Lindén +// SPDX-FileCopyrightText: 2020-2024 Robin Lindén // // SPDX-License-Identifier: GPL-3.0-only @@ -19,6 +19,7 @@ import androidx.test.espresso.matcher.ViewMatchers.withText import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import androidx.test.rule.ActivityTestRule +import androidx.test.rule.GrantPermissionRule import dagger.BindsInstance import dagger.Component import dagger.Module @@ -96,6 +97,9 @@ class IntegrationTest { app.componentOverride = DaggerTestComponent.factory().create(app) } + @get:Rule + val grantPermissionRule = GrantPermissionRule.grant(android.Manifest.permission.POST_NOTIFICATIONS) + @Test fun profileCreationWorks() { // ProfileFragment