Skip to content

Commit

Permalink
Add missing permission in SyncingTest
Browse files Browse the repository at this point in the history
  • Loading branch information
amberin committed Jun 8, 2024
1 parent f269abd commit e070ec2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import static androidx.test.espresso.matcher.ViewMatchers.withText;
import static com.orgzly.android.espresso.util.EspressoUtils.clickSetting;
import static com.orgzly.android.espresso.util.EspressoUtils.contextualToolbarOverflowMenu;
import static com.orgzly.android.espresso.util.EspressoUtils.grantAlarmsAndRemindersPermission;
import static com.orgzly.android.espresso.util.EspressoUtils.onActionItemClick;
import static com.orgzly.android.espresso.util.EspressoUtils.onBook;
import static com.orgzly.android.espresso.util.EspressoUtils.onListItem;
Expand Down Expand Up @@ -73,6 +74,7 @@ public void tearDown() throws Exception {
* Utility method for starting sync using drawer button.
*/
private void sync() {
grantAlarmsAndRemindersPermission();
onView(withId(R.id.drawer_layout)).perform(open());
onView(withId(R.id.sync_button_container)).perform(click());
onView(withId(R.id.drawer_layout)).perform(close());
Expand Down

0 comments on commit e070ec2

Please sign in to comment.