Skip to content

Commit e3ba37b

Browse files
committed
MainActivityTest: Adding more instrumentation test
* Instrumentation test for episode and season for tv show NOTE: - Dicoding submission 1 reviewer advice !
1 parent 1640bff commit e3ba37b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: app/src/androidTest/java/com/dicoding/moviecatalog/activity/MainActivityTest.kt

+2
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ class MainActivityTest {
8181
onView(withId(R.id.image_poster)).check(matches(withContentDescription(dummyTvShow[0].imagePath)))
8282
onView(withId(R.id.movie_rating_text)).check(matches(isDisplayed()))
8383
onView(withId(R.id.movie_rating_text)).check(matches(withText(dummyTvShow[0].rating)))
84+
onView(withId(R.id.movie_episode_text)).check(matches(isDisplayed()))
85+
onView(withId(R.id.movie_episode_text)).check(matches(withText(dummyTvShow[0].episode + " | " + dummyTvShow[0].season)))
8486
onView(withId(R.id.movie_duration_text)).check(matches(isDisplayed()))
8587
onView(withId(R.id.movie_duration_text)).check(matches(withText(dummyTvShow[0].duration)))
8688
onView(withId(R.id.desc_text)).check(matches(isDisplayed()))

0 commit comments

Comments
 (0)