diff --git a/app/src/sharedTest/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentTest.kt b/app/src/sharedTest/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentTest.kt index dce5756edd3..a090c40af39 100644 --- a/app/src/sharedTest/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentTest.kt +++ b/app/src/sharedTest/java/org/oppia/android/app/topic/lessons/TopicLessonsFragmentTest.kt @@ -208,7 +208,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 1, + position = 1, R.id.chapter_list_drop_down_icon ) ).check( @@ -227,7 +227,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 1, + position = 1, R.id.chapter_recycler_view ) ).check(matches(isDisplayed())) @@ -243,7 +243,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 1, + position = 1, R.id.chapter_recycler_view ) ).check(matches(hasDescendant(withId(R.id.chapter_container)))).perform(click()) @@ -289,7 +289,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 1, + position = 1, R.id.chapter_recycler_view ) ).check(matches(not(isDisplayed()))) @@ -308,7 +308,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 2, + position = 2, R.id.chapter_recycler_view ) ).check(matches(not(isDisplayed()))) @@ -325,7 +325,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 1, + position = 1, R.id.chapter_recycler_view ) ).check(matches(isDisplayed())) @@ -342,7 +342,7 @@ class TopicLessonsFragmentTest { onView( atPositionOnView( R.id.story_summary_recycler_view, - 1, + position = 1, R.id.chapter_recycler_view ) ).check(matches(isDisplayed())) @@ -361,7 +361,7 @@ class TopicLessonsFragmentTest { testCoroutineDispatchers.runCurrent() onView( allOf( - withText(TopicTab.getTabForPosition(1).name), + withText(TopicTab.getTabForPosition(position = 1).name), isDescendantOfA(withId(R.id.topic_tabs_container)) ) ).perform(click())