Skip to content

Commit

Permalink
Fix #2515: Updated literals to named arguments in TopicLessonsFragmen…
Browse files Browse the repository at this point in the history
…tTest.kt. (#2524)

* Updated literals to named argumentsin TopicLessonsFragmentTest.kt.

* Update TopicLessonsFragmentTest.kt

* Update TopicLessonsFragmentTest.kt
  • Loading branch information
harshpatel63 authored Jan 21, 2021
1 parent 3c32562 commit 5393abe
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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()))
Expand All @@ -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())
Expand Down Expand Up @@ -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())))
Expand All @@ -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())))
Expand All @@ -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()))
Expand All @@ -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()))
Expand All @@ -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())
Expand Down

0 comments on commit 5393abe

Please sign in to comment.