@@ -43,7 +43,6 @@ class MainActivityTest {
43
43
44
44
@Test
45
45
fun load_A_Movie () {
46
- inlineVariable.delayTwoSecond()
47
46
onView(withText(" MOVIE" )).perform(click())
48
47
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
49
48
onView(withId(R .id.rv_movie)).perform(
@@ -55,7 +54,6 @@ class MainActivityTest {
55
54
56
55
@Test
57
56
fun load_B_DetailMovie () {
58
- inlineVariable.delayTwoSecond()
59
57
onView(withText(" MOVIE" )).perform(click())
60
58
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
61
59
onView(withId(R .id.rv_movie)).perform(
@@ -64,7 +62,6 @@ class MainActivityTest {
64
62
click()
65
63
)
66
64
)
67
- inlineVariable.delayTwoSecond()
68
65
onView(withId(R .id.movie_title_text)).check(matches(isDisplayed()))
69
66
onView(withId(R .id.movie_title_text)).check(matches(withText(dummySelectedMovie.title)))
70
67
onView(withId(R .id.movie_release_date)).check(matches(isDisplayed()))
@@ -79,7 +76,6 @@ class MainActivityTest {
79
76
onView(withId(R .id.movie_revenue_text)).check(matches(withText(revenue)))
80
77
onView(withId(R .id.desc_text)).check(matches(isDisplayed()))
81
78
onView(withId(R .id.desc_text)).check(matches(withText(dummySelectedMovie.overview)))
82
- inlineVariable.delayTwoSecond()
83
79
onView(withId(R .id.cv_genre_1)).check(matches(isDisplayed()))
84
80
onView(withId(R .id.movie_genre_text_1)).check(matches(withText(dummySelectedMovie.genres_1)))
85
81
onView(withId(R .id.cv_genre_2)).check(matches(isDisplayed()))
@@ -96,7 +92,6 @@ class MainActivityTest {
96
92
97
93
@Test
98
94
fun load_C_ShareMovie () {
99
- inlineVariable.delayTwoSecond()
100
95
onView(withText(" MOVIE" )).perform(click())
101
96
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
102
97
onView(withId(R .id.rv_movie)).perform(
@@ -105,7 +100,6 @@ class MainActivityTest {
105
100
click()
106
101
)
107
102
)
108
- inlineVariable.delayTwoSecond()
109
103
onView(withId(R .id.menu_fab)).check(matches(isDisplayed()))
110
104
onView(withId(R .id.menu_fab)).check(matches(isClickable()))
111
105
onView(withId(R .id.menu_fab)).perform(click())
@@ -116,7 +110,6 @@ class MainActivityTest {
116
110
117
111
@Test
118
112
fun load_D_addFavMovies () {
119
- inlineVariable.delayTwoSecond()
120
113
onView(withText(" MOVIE" )).perform(click())
121
114
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
122
115
onView(withId(R .id.rv_movie)).perform(
@@ -125,15 +118,13 @@ class MainActivityTest {
125
118
click()
126
119
)
127
120
)
128
- inlineVariable.delayTwoSecond()
129
121
onView(withId(R .id.menu_fab)).check(matches(isDisplayed()))
130
122
onView(withId(R .id.menu_fab)).check(matches(isClickable()))
131
123
onView(withId(R .id.menu_fab)).perform(click())
132
124
onView(withId(R .id.sus_fab)).check(matches(isDisplayed()))
133
125
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
134
126
onView(withId(R .id.sus_fab)).perform(click())
135
127
Espresso .pressBackUnconditionally()
136
- inlineVariable.delayTwoSecond()
137
128
onView(withText(" MOVIE" )).perform(click())
138
129
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
139
130
onView(withId(R .id.rv_movie)).perform(
@@ -142,15 +133,13 @@ class MainActivityTest {
142
133
click()
143
134
)
144
135
)
145
- inlineVariable.delayTwoSecond()
146
136
onView(withId(R .id.menu_fab)).check(matches(isDisplayed()))
147
137
onView(withId(R .id.menu_fab)).check(matches(isClickable()))
148
138
onView(withId(R .id.menu_fab)).perform(click())
149
139
onView(withId(R .id.sus_fab)).check(matches(isDisplayed()))
150
140
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
151
141
onView(withId(R .id.sus_fab)).perform(click())
152
142
Espresso .pressBackUnconditionally()
153
- inlineVariable.delayTwoSecond()
154
143
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
155
144
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
156
145
onView(withId(R .id.sus_list_fab)).perform(click())
@@ -168,15 +157,13 @@ class MainActivityTest {
168
157
169
158
@Test
170
159
fun load_F_sortFavMoviesAsc () {
171
- inlineVariable.delayTwoSecond()
172
160
onView(withText(" MOVIE" )).perform(click())
173
161
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
174
162
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
175
163
onView(withId(R .id.sus_list_fab)).perform(click())
176
164
onView(withId(R .id.sus_fav_fab)).check(matches(isDisplayed()))
177
165
onView(withId(R .id.sus_fav_fab)).check(matches(isClickable()))
178
166
onView(withId(R .id.sus_fav_fab)).perform(click())
179
- inlineVariable.delayTwoSecond()
180
167
onView(withText(" MOVIE" )).perform(click())
181
168
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
182
169
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
@@ -185,21 +172,18 @@ class MainActivityTest {
185
172
onView(withId(R .id.sus_order_asc)).check(matches(isDisplayed()))
186
173
onView(withId(R .id.sus_order_asc)).check(matches(isClickable()))
187
174
onView(withId(R .id.sus_order_asc)).perform(click())
188
- inlineVariable.delayTwoSecond()
189
175
Espresso .pressBackUnconditionally()
190
176
}
191
177
192
178
@Test
193
179
fun load_E_sortFavMoviesDesc () {
194
- inlineVariable.delayTwoSecond()
195
180
onView(withText(" MOVIE" )).perform(click())
196
181
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
197
182
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
198
183
onView(withId(R .id.sus_list_fab)).perform(click())
199
184
onView(withId(R .id.sus_fav_fab)).check(matches(isDisplayed()))
200
185
onView(withId(R .id.sus_fav_fab)).check(matches(isClickable()))
201
186
onView(withId(R .id.sus_fav_fab)).perform(click())
202
- inlineVariable.delayTwoSecond()
203
187
onView(withText(" MOVIE" )).perform(click())
204
188
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
205
189
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
@@ -208,21 +192,18 @@ class MainActivityTest {
208
192
onView(withId(R .id.sus_order_desc)).check(matches(isDisplayed()))
209
193
onView(withId(R .id.sus_order_desc)).check(matches(isClickable()))
210
194
onView(withId(R .id.sus_order_desc)).perform(click())
211
- inlineVariable.delayTwoSecond()
212
195
Espresso .pressBackUnconditionally()
213
196
}
214
197
215
198
@Test
216
199
fun load_G_removeFavMovies () {
217
- inlineVariable.delayTwoSecond()
218
200
onView(withText(" MOVIE" )).perform(click())
219
201
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
220
202
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
221
203
onView(withId(R .id.sus_list_fab)).perform(click())
222
204
onView(withId(R .id.sus_fav_fab)).check(matches(isDisplayed()))
223
205
onView(withId(R .id.sus_fav_fab)).check(matches(isClickable()))
224
206
onView(withId(R .id.sus_fav_fab)).perform(click())
225
- inlineVariable.delayTwoSecond()
226
207
onView(withText(" MOVIE" )).perform(click())
227
208
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
228
209
onView(withId(R .id.rv_movie)).perform(
@@ -237,7 +218,6 @@ class MainActivityTest {
237
218
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
238
219
onView(withId(R .id.sus_fab)).perform(click())
239
220
Espresso .pressBackUnconditionally()
240
- inlineVariable.delayTwoSecond()
241
221
onView(withId(R .id.rv_movie)).check(matches(isDisplayed()))
242
222
onView(withId(R .id.rv_movie)).perform(
243
223
RecyclerViewActions .actionOnItemAtPosition<RecyclerView .ViewHolder >(
@@ -250,13 +230,11 @@ class MainActivityTest {
250
230
onView(withId(R .id.sus_fab)).check(matches(isDisplayed()))
251
231
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
252
232
onView(withId(R .id.sus_fab)).perform(click())
253
- inlineVariable.delayTwoSecond()
254
233
Espresso .pressBackUnconditionally()
255
234
}
256
235
257
236
@Test
258
237
fun load_H_TvShow () {
259
- inlineVariable.delayTwoSecond()
260
238
onView(withText(" TV SHOW" )).perform(click())
261
239
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
262
240
onView(withId(R .id.rv_tvshow)).perform(
@@ -268,7 +246,6 @@ class MainActivityTest {
268
246
269
247
@Test
270
248
fun load_I_DetailTvShow () {
271
- inlineVariable.delayTwoSecond()
272
249
onView(withText(" TV SHOW" )).perform(click())
273
250
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
274
251
onView(withId(R .id.rv_tvshow)).perform(
@@ -277,7 +254,6 @@ class MainActivityTest {
277
254
click()
278
255
)
279
256
)
280
- inlineVariable.delayTwoSecond()
281
257
onView(withId(R .id.movie_title_text)).check(matches(isDisplayed()))
282
258
onView(withId(R .id.movie_title_text)).check(matches(withText(dummySelectedTvShow.tvShowName)))
283
259
onView(withId(R .id.movie_release_date)).check(matches(isDisplayed()))
@@ -301,7 +277,6 @@ class MainActivityTest {
301
277
onView(withId(R .id.tvShow_language_text)).check(matches(withText(dummySelectedTvShow.tvShowLanguage)))
302
278
onView(withId(R .id.desc_text)).check(matches(isDisplayed()))
303
279
onView(withId(R .id.desc_text)).check(matches(withText(dummySelectedTvShow.tvShowOverview)))
304
- inlineVariable.delayTwoSecond()
305
280
onView(withId(R .id.cv_genre_1)).check(matches(isDisplayed()))
306
281
onView(withId(R .id.movie_genre_text_1)).check(matches(withText(dummySelectedTvShow.tvShowGenres_1)))
307
282
onView(withId(R .id.cv_genre_2)).check(matches(isDisplayed()))
@@ -330,7 +305,6 @@ class MainActivityTest {
330
305
331
306
@Test
332
307
fun load_J_ShareTvShow () {
333
- inlineVariable.delayTwoSecond()
334
308
onView(withText(" TV SHOW" )).perform(click())
335
309
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
336
310
onView(withId(R .id.rv_tvshow)).perform(
@@ -339,7 +313,6 @@ class MainActivityTest {
339
313
click()
340
314
)
341
315
)
342
- inlineVariable.delayTwoSecond()
343
316
onView(withId(R .id.menu_fab)).check(matches(isDisplayed()))
344
317
onView(withId(R .id.menu_fab)).check(matches(isClickable()))
345
318
onView(withId(R .id.menu_fab)).perform(click())
@@ -350,7 +323,6 @@ class MainActivityTest {
350
323
351
324
@Test
352
325
fun load_K_addFavTvShow () {
353
- inlineVariable.delayTwoSecond()
354
326
onView(withText(" TV SHOW" )).perform(click())
355
327
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
356
328
onView(withId(R .id.rv_tvshow)).perform(
@@ -359,15 +331,13 @@ class MainActivityTest {
359
331
click()
360
332
)
361
333
)
362
- inlineVariable.delayTwoSecond()
363
334
onView(withId(R .id.menu_fab)).check(matches(isDisplayed()))
364
335
onView(withId(R .id.menu_fab)).check(matches(isClickable()))
365
336
onView(withId(R .id.menu_fab)).perform(click())
366
337
onView(withId(R .id.sus_fab)).check(matches(isDisplayed()))
367
338
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
368
339
onView(withId(R .id.sus_fab)).perform(click())
369
340
Espresso .pressBackUnconditionally()
370
- inlineVariable.delayTwoSecond()
371
341
onView(withText(" TV SHOW" )).perform(click())
372
342
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
373
343
onView(withId(R .id.rv_tvshow)).perform(
@@ -376,15 +346,13 @@ class MainActivityTest {
376
346
click()
377
347
)
378
348
)
379
- inlineVariable.delayTwoSecond()
380
349
onView(withId(R .id.menu_fab)).check(matches(isDisplayed()))
381
350
onView(withId(R .id.menu_fab)).check(matches(isClickable()))
382
351
onView(withId(R .id.menu_fab)).perform(click())
383
352
onView(withId(R .id.sus_fab)).check(matches(isDisplayed()))
384
353
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
385
354
onView(withId(R .id.sus_fab)).perform(click())
386
355
Espresso .pressBackUnconditionally()
387
- inlineVariable.delayTwoSecond()
388
356
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
389
357
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
390
358
onView(withId(R .id.sus_list_fab)).perform(click())
@@ -402,15 +370,13 @@ class MainActivityTest {
402
370
403
371
@Test
404
372
fun load_M_sortFavTvShowAsc () {
405
- inlineVariable.delayTwoSecond()
406
373
onView(withText(" TV SHOW" )).perform(click())
407
374
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
408
375
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
409
376
onView(withId(R .id.sus_list_fab)).perform(click())
410
377
onView(withId(R .id.sus_fav_fab)).check(matches(isDisplayed()))
411
378
onView(withId(R .id.sus_fav_fab)).check(matches(isClickable()))
412
379
onView(withId(R .id.sus_fav_fab)).perform(click())
413
- inlineVariable.delayTwoSecond()
414
380
onView(withText(" TV SHOW" )).perform(click())
415
381
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
416
382
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
@@ -419,21 +385,18 @@ class MainActivityTest {
419
385
onView(withId(R .id.sus_order_asc)).check(matches(isDisplayed()))
420
386
onView(withId(R .id.sus_order_asc)).check(matches(isClickable()))
421
387
onView(withId(R .id.sus_order_asc)).perform(click())
422
- inlineVariable.delayTwoSecond()
423
388
Espresso .pressBackUnconditionally()
424
389
}
425
390
426
391
@Test
427
392
fun load_L_sortFavTvShowDesc () {
428
- inlineVariable.delayTwoSecond()
429
393
onView(withText(" TV SHOW" )).perform(click())
430
394
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
431
395
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
432
396
onView(withId(R .id.sus_list_fab)).perform(click())
433
397
onView(withId(R .id.sus_fav_fab)).check(matches(isDisplayed()))
434
398
onView(withId(R .id.sus_fav_fab)).check(matches(isClickable()))
435
399
onView(withId(R .id.sus_fav_fab)).perform(click())
436
- inlineVariable.delayTwoSecond()
437
400
onView(withText(" TV SHOW" )).perform(click())
438
401
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
439
402
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
@@ -442,21 +405,18 @@ class MainActivityTest {
442
405
onView(withId(R .id.sus_order_desc)).check(matches(isDisplayed()))
443
406
onView(withId(R .id.sus_order_desc)).check(matches(isClickable()))
444
407
onView(withId(R .id.sus_order_desc)).perform(click())
445
- inlineVariable.delayTwoSecond()
446
408
Espresso .pressBackUnconditionally()
447
409
}
448
410
449
411
@Test
450
412
fun load_N_removeFavTvShow () {
451
- inlineVariable.delayTwoSecond()
452
413
onView(withText(" TV SHOW" )).perform(click())
453
414
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
454
415
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
455
416
onView(withId(R .id.sus_list_fab)).perform(click())
456
417
onView(withId(R .id.sus_fav_fab)).check(matches(isDisplayed()))
457
418
onView(withId(R .id.sus_fav_fab)).check(matches(isClickable()))
458
419
onView(withId(R .id.sus_fav_fab)).perform(click())
459
- inlineVariable.delayTwoSecond()
460
420
onView(withText(" TV SHOW" )).perform(click())
461
421
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
462
422
onView(withId(R .id.rv_tvshow)).perform(
@@ -471,7 +431,6 @@ class MainActivityTest {
471
431
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
472
432
onView(withId(R .id.sus_fab)).perform(click())
473
433
Espresso .pressBackUnconditionally()
474
- inlineVariable.delayTwoSecond()
475
434
onView(withText(" TV SHOW" )).perform(click())
476
435
onView(withId(R .id.rv_tvshow)).check(matches(isDisplayed()))
477
436
onView(withId(R .id.rv_tvshow)).perform(
@@ -486,14 +445,12 @@ class MainActivityTest {
486
445
onView(withId(R .id.sus_fab)).check(matches(isClickable()))
487
446
onView(withId(R .id.sus_fab)).perform(click())
488
447
Espresso .pressBackUnconditionally()
489
- inlineVariable.delayTwoSecond()
490
448
onView(withText(" TV SHOW" )).perform(click())
491
449
Espresso .pressBackUnconditionally()
492
450
}
493
451
494
452
@Test
495
453
fun load_P_sortMovieAsc () {
496
- inlineVariable.delayTwoSecond()
497
454
onView(withText(" MOVIE" )).perform(click())
498
455
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
499
456
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
@@ -505,7 +462,6 @@ class MainActivityTest {
505
462
506
463
@Test
507
464
fun load_O_sortMovieDesc () {
508
- inlineVariable.delayTwoSecond()
509
465
onView(withText(" MOVIE" )).perform(click())
510
466
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
511
467
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
@@ -517,7 +473,6 @@ class MainActivityTest {
517
473
518
474
@Test
519
475
fun load_R_sortTvShowAsc () {
520
- inlineVariable.delayTwoSecond()
521
476
onView(withText(" TV SHOW" )).perform(click())
522
477
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
523
478
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
@@ -529,7 +484,6 @@ class MainActivityTest {
529
484
530
485
@Test
531
486
fun load_Q_sortTvShowDesc () {
532
- inlineVariable.delayTwoSecond()
533
487
onView(withText(" TV SHOW" )).perform(click())
534
488
onView(withId(R .id.sus_list_fab)).check(matches(isDisplayed()))
535
489
onView(withId(R .id.sus_list_fab)).check(matches(isClickable()))
0 commit comments