Update ForYouScreenTest.kt

pull/738/head
Simon Marquis 2 years ago committed by GitHub
parent 69879ff874
commit a93cce92f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,8 +43,11 @@ class ForYouScreenTest {
@get:Rule @get:Rule
val permissionTestRule: GrantPermissionRule = val permissionTestRule: GrantPermissionRule =
if (SDK_INT < TIRAMISU) grant() if (SDK_INT >= TIRAMISU) {
else grant(Manifest.permission.POST_NOTIFICATIONS) grant(Manifest.permission.POST_NOTIFICATIONS)
} else {
grant()
}
@get:Rule @get:Rule
val composeTestRule = createAndroidComposeRule<ComponentActivity>() val composeTestRule = createAndroidComposeRule<ComponentActivity>()

Loading…
Cancel
Save