diff --git a/app/src/androidTest/java/org/pixeldroid/app/HomeFeedTest.kt b/app/src/androidTest/java/org/pixeldroid/app/HomeFeedTest.kt index 5de48305..bd60f7cc 100644 --- a/app/src/androidTest/java/org/pixeldroid/app/HomeFeedTest.kt +++ b/app/src/androidTest/java/org/pixeldroid/app/HomeFeedTest.kt @@ -67,9 +67,6 @@ class HomeFeedTest { //Wait for the feed to load waitForView(R.id.postPager) - - onView(withId(R.id.list)).perform(scrollToPosition(0)) - activityScenario.onActivity { a -> run { //Pick the second photo @@ -143,8 +140,6 @@ class HomeFeedTest { fun clickingUsernameOpensProfile() { waitForView(R.id.username) - onView(withId(R.id.list)).perform(scrollToPosition(0)) - onView(withId(R.id.list)).perform( actionOnItemAtPosition(0, clickChildViewWithId(R.id.username)) ) @@ -156,8 +151,6 @@ class HomeFeedTest { fun clickingProfilePicOpensProfile() { waitForView(R.id.profilePic) - onView(withId(R.id.list)).perform(scrollToPosition(0)) - onView(withId(R.id.list)).perform( actionOnItemAtPosition(0, clickChildViewWithId(R.id.profilePic)) ) @@ -169,8 +162,6 @@ class HomeFeedTest { fun clickingMentionOpensProfile() { waitForView(R.id.description) - onView(withId(R.id.list)).perform(scrollToPosition(0)) - onView(withId(R.id.list)).perform( actionOnItemAtPosition(0, clickChildViewWithId(R.id.description)) ) @@ -258,8 +249,6 @@ class HomeFeedTest { fun performClickOnSensitiveWarningTabs() { waitForView(R.id.username) - onView(withId(R.id.list)).perform(scrollToPosition(0)) - onView(first(withId(R.id.sensitiveWarning))).check(matches(withEffectiveVisibility(Visibility.VISIBLE))) onView(withId(R.id.list))