@@ -75,7 +75,10 @@ class RecordActionsContinueTest : BaseUiTest() {
75
75
clickOnViewWithText(fullName)
76
76
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
77
77
clickOnViewWithText(coreR.string.change_record_actions_hint)
78
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
78
+ scrollRecyclerToView(
79
+ changeRecordR.id.rvChangeRecordAction,
80
+ hasDescendant(withText(coreR.string.change_record_continue)),
81
+ )
79
82
clickOnViewWithText(coreR.string.change_record_continue)
80
83
81
84
// Check no record
@@ -124,7 +127,10 @@ class RecordActionsContinueTest : BaseUiTest() {
124
127
// Continue untracked doesn't work
125
128
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
126
129
clickOnViewWithText(coreR.string.change_record_actions_hint)
127
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
130
+ scrollRecyclerToView(
131
+ changeRecordR.id.rvChangeRecordAction,
132
+ hasDescendant(withText(coreR.string.change_record_continue)),
133
+ )
128
134
clickOnViewWithText(coreR.string.change_record_continue)
129
135
clickOnViewWithId(com.google.android.material.R .id.snackbar_text)
130
136
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
@@ -137,7 +143,10 @@ class RecordActionsContinueTest : BaseUiTest() {
137
143
// Continue
138
144
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
139
145
clickOnViewWithText(coreR.string.change_record_actions_hint)
140
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
146
+ scrollRecyclerToView(
147
+ changeRecordR.id.rvChangeRecordAction,
148
+ hasDescendant(withText(coreR.string.change_record_continue)),
149
+ )
141
150
clickOnViewWithText(coreR.string.change_record_continue)
142
151
143
152
checkViewIsDisplayed(
@@ -185,7 +194,10 @@ class RecordActionsContinueTest : BaseUiTest() {
185
194
// Continue untracked doesn't work
186
195
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
187
196
clickOnViewWithText(coreR.string.change_record_actions_hint)
188
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
197
+ scrollRecyclerToView(
198
+ changeRecordR.id.rvChangeRecordAction,
199
+ hasDescendant(withText(coreR.string.change_record_continue)),
200
+ )
189
201
clickOnViewWithText(coreR.string.change_record_continue)
190
202
clickOnViewWithId(com.google.android.material.R .id.snackbar_text)
191
203
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
@@ -198,7 +210,10 @@ class RecordActionsContinueTest : BaseUiTest() {
198
210
// Continue
199
211
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
200
212
clickOnViewWithText(coreR.string.change_record_actions_hint)
201
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
213
+ scrollRecyclerToView(
214
+ changeRecordR.id.rvChangeRecordAction,
215
+ hasDescendant(withText(coreR.string.change_record_continue)),
216
+ )
202
217
clickOnViewWithText(coreR.string.change_record_continue)
203
218
204
219
checkViewDoesNotExist(
@@ -251,7 +266,10 @@ class RecordActionsContinueTest : BaseUiTest() {
251
266
clickOnView(allOf(withText(name), isCompletelyDisplayed()))
252
267
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
253
268
clickOnViewWithText(coreR.string.change_record_actions_hint)
254
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
269
+ scrollRecyclerToView(
270
+ changeRecordR.id.rvChangeRecordAction,
271
+ hasDescendant(withText(coreR.string.change_record_continue)),
272
+ )
255
273
clickOnViewWithText(coreR.string.change_record_continue)
256
274
// Snackbar is in the way of Add button
257
275
clickOnViewWithId(com.google.android.material.R .id.snackbar_text)
@@ -272,7 +290,10 @@ class RecordActionsContinueTest : BaseUiTest() {
272
290
adjust(" +5" )
273
291
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
274
292
clickOnViewWithText(coreR.string.change_record_actions_hint)
275
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
293
+ scrollRecyclerToView(
294
+ changeRecordR.id.rvChangeRecordAction,
295
+ hasDescendant(withText(coreR.string.change_record_continue)),
296
+ )
276
297
clickOnViewWithText(coreR.string.change_record_continue)
277
298
278
299
// Still on edit screen
@@ -318,7 +339,10 @@ class RecordActionsContinueTest : BaseUiTest() {
318
339
clickOnRecyclerItem(changeRecordR.id.rvChangeRecordType, withText(name))
319
340
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
320
341
clickOnViewWithText(coreR.string.change_record_actions_hint)
321
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
342
+ scrollRecyclerToView(
343
+ changeRecordR.id.rvChangeRecordAction,
344
+ hasDescendant(withText(coreR.string.change_record_continue)),
345
+ )
322
346
clickOnViewWithText(coreR.string.change_record_continue)
323
347
324
348
// Running record stopped
@@ -351,7 +375,10 @@ class RecordActionsContinueTest : BaseUiTest() {
351
375
clickOnRecyclerItem(changeRecordR.id.rvChangeRecordType, withText(name2))
352
376
onView(withText(coreR.string.change_record_actions_hint)).perform(nestedScrollTo())
353
377
clickOnViewWithText(coreR.string.change_record_actions_hint)
354
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
378
+ scrollRecyclerToView(
379
+ changeRecordR.id.rvChangeRecordAction,
380
+ hasDescendant(withText(coreR.string.change_record_continue)),
381
+ )
355
382
clickOnViewWithText(coreR.string.change_record_continue)
356
383
357
384
// Running record stopped
@@ -391,7 +418,10 @@ class RecordActionsContinueTest : BaseUiTest() {
391
418
NavUtils .openRecordsScreen()
392
419
clickOnView(allOf(withText(name), isCompletelyDisplayed()))
393
420
clickOnViewWithText(coreR.string.change_record_actions_hint)
394
- scrollRecyclerToView(changeRecordR.id.rvChangeRecordAction, withText(coreR.string.change_record_continue))
421
+ scrollRecyclerToView(
422
+ changeRecordR.id.rvChangeRecordAction,
423
+ hasDescendant(withText(coreR.string.change_record_continue)),
424
+ )
395
425
clickOnViewWithText(coreR.string.change_record_continue)
396
426
397
427
// New running record
0 commit comments