PeriodPals / periodpals

3 stars 1 forks source link

Fix end-to-end to handle push notification permission request dialog #235

Closed charliemangano closed 21 hours ago

charliemangano commented 2 days ago

Is your feature request related to a problem? Please describe. With PR #234, a new dialog pops-up when arriving on the Profile screen for the first time. This makes the end-to-end tests fail.

Describe the solution you'd like We should add this at the top of the end-to-end test classes:

@get:Rule
  val permissionRule: GrantPermissionRule =
      GrantPermissionRule.grant(Manifest.permission.POST_NOTIFICATIONS)

Additional context It makes it so that that permission to push notifications is granted, so the dialog is never shown. I will create an issue to update them in their branch.