Skip to content

Commit d9bcdb0

Browse files
committed
Test fixes
1 parent fa01f10 commit d9bcdb0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

app/src/androidTest/java/com/futsch1/medtimer/BasicUITest.java

+17
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,33 @@ public void appIntro() {
116116
assertDisplayed(R.string.intro_welcome);
117117
assertDisplayed(R.string.intro_welcome_description);
118118

119+
try {
120+
dismissANRSystemDialog();
121+
} catch (UiObjectNotFoundException e) {
122+
// intentionally empty
123+
}
124+
119125
clickOn(com.github.appintro.R.id.next);
120126

121127
sleep(1000);
122128

129+
try {
130+
dismissANRSystemDialog();
131+
} catch (UiObjectNotFoundException e) {
132+
// intentionally empty
133+
}
134+
123135
assertDisplayed(R.string.tab_medicine);
124136
assertDisplayed(R.string.intro_medicine_description);
125137

126138
clickOn(com.github.appintro.R.id.skip);
127139

128140
sleep(1000);
141+
try {
142+
dismissANRSystemDialog();
143+
} catch (UiObjectNotFoundException e) {
144+
// intentionally empty
145+
}
129146

130147
assertDisplayed(R.string.next_reminders);
131148
}

0 commit comments

Comments
 (0)