From 5393abeeec5373c07593668b359b5d368a802caa Mon Sep 17 00:00:00 2001 From: Harsh Patel <76950584+Sci3fic@users.noreply.github.com> Date: Thu, 21 Jan 2021 21:28:19 +0530 Subject: [PATCH] Fix #2515: Updated literals to named arguments in TopicLessonsFragmentTest.kt. (#2524) * Updated literals to named argumentsin TopicLessonsFragmentTest.kt. * Update TopicLessonsFragmentTest.kt * Update TopicLessonsFragmentTest.kt --- .../topic/lessons/TopicLessonsFragmentTest.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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())