Skip to content

Commit 79a1844

Browse files
author
Jorge Antonio Diaz-Benito Soriano
committed
Need to rework the tests a bit.
1 parent efcf099 commit 79a1844

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

presentation/src/androidTest/java/com/jorge/boats/xkcd/view/activity/StripeActivityTest.java

+6-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public StripeActivityTest() {
5959
}
6060

6161
public void testPrevious() {
62-
final ViewInteraction titleInteraction = onView(withId(R.id.toolbar_title));
62+
final ViewInteraction titleInteraction = onView(withId(R.id.title)), descriptionInteraction =
63+
onView(withId(R.id.description));
6364

6465
waitForLoad();
6566

@@ -71,6 +72,7 @@ public void testPrevious() {
7172

7273
titleInteraction.check(matches(CustomViewMatchers.withText(equalTo(
7374
getInstrumentation().getTargetContext().getString(R.string.stub_previous_stripe_title)))));
75+
//TODO Check description interaction
7476

7577
onView(withId(R.id.retry)).check(matches(not((isDisplayed()))));
7678
}
@@ -96,7 +98,8 @@ public void testShare() {
9698
}
9799

98100
public void testNext() {
99-
final ViewInteraction titleInteraction = onView(withId(R.id.toolbar_title));
101+
final ViewInteraction titleInteraction = onView(withId(R.id.title)), descriptionInteraction =
102+
onView(withId(R.id.description));
100103

101104
waitForLoad();
102105

@@ -108,6 +111,7 @@ public void testNext() {
108111

109112
titleInteraction.check(matches(CustomViewMatchers.withText(equalTo(
110113
getInstrumentation().getTargetContext().getString(R.string.stub_next_stripe_title)))));
114+
//TODO Check description interaction
111115

112116
onView(withId(R.id.retry)).check(matches(not((isDisplayed()))));
113117
}

0 commit comments

Comments
 (0)