Skip to content
This repository has been archived by the owner on May 7, 2019. It is now read-only.

Commit

Permalink
Fix instrumented tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayltai committed May 20, 2018
1 parent 9b9accc commit e62232c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void rateApp() {
Espresso.onView(Matchers.allOf(
ViewMatchers.withId(R.id.action_about),
ViewMatchers.withParent(ViewMatchers.withParent(ViewMatchers.withId(R.id.bottomNavigationView)))))
.perform(ViewActions.scrollTo(), ViewActions.click());
.perform(ViewActions.click());

ScreenShotter.takeScreenshot(this.getClass().getSimpleName() + ".rateApp", this.testRule.getActivity());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void bookmarkNewsTest() {
Espresso.onView(Matchers.allOf(
ViewMatchers.withId(R.id.action_bookmark),
ViewMatchers.withContentDescription("Bookmark")))
.perform(ViewActions.scrollTo(), ViewActions.click());
.perform(ViewActions.click());

MoreTestUtils.sleep(MoreTestUtils.DURATION_SHORT);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void detailsTest() {
Espresso.onView(Matchers.allOf(
ViewMatchers.withId(R.id.action_share),
ViewMatchers.withContentDescription("Share")))
.perform(ViewActions.scrollTo(), ViewActions.click());
.perform(ViewActions.click());

// Checks that the fired Intent is correct
Intents.intended(shareIntent);
Expand All @@ -82,6 +82,6 @@ public void detailsTest() {
Espresso.onView(Matchers.allOf(
ViewMatchers.withId(R.id.action_text_to_speech),
ViewMatchers.withContentDescription("Text to speech")))
.perform(ViewActions.scrollTo(), ViewActions.click());
.perform(ViewActions.click());
}
}

0 comments on commit e62232c

Please sign in to comment.