Skip to content

Commit

Permalink
Grant permission for notifications to see dialog tests
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 authored and AndyScherzinger committed Oct 30, 2023
1 parent 8ec09c7 commit fb00467
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment;
import androidx.test.espresso.intent.rule.IntentsTestRule;
import androidx.test.rule.GrantPermissionRule;
import kotlin.Unit;

import static androidx.test.platform.app.InstrumentationRegistry.getInstrumentation;
Expand All @@ -108,6 +109,9 @@ private FileDisplayActivity getFileDisplayActivity() {
return activityRule.launchActivity(intent);
}

@Rule
public GrantPermissionRule permissionRule = GrantPermissionRule.grant(
android.Manifest.permission.POST_NOTIFICATIONS);

@After
public void quitLooperIfNeeded() {
Expand Down

0 comments on commit fb00467

Please sign in to comment.