Skip to content

Commit

Permalink
Fix the profile creation test on Android 13 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
robinlinden committed Aug 31, 2024
1 parent 1d97b4b commit 9f2f50d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion atox/src/androidTest/kotlin/IntegrationTest.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2020-2022 Robin Lindén <dev@robinlinden.eu>
// SPDX-FileCopyrightText: 2020-2024 Robin Lindén <dev@robinlinden.eu>
//
// SPDX-License-Identifier: GPL-3.0-only

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9f2f50d

Please sign in to comment.