ready for aws screenshots

This commit is contained in:
Antonio Zugaldia
2015-09-15 14:19:23 -04:00
parent df7ef8ee87
commit c0b9ec6da4

View File

@@ -150,7 +150,7 @@ public class MainActivityTest extends BaseTest {
.perform(click());
onView(withText(R.string.action_debug))
.perform(click());
// Clicking the item closes the drawer
onView(withId(R.id.nav_view))
.check(matches(not(isDisplayed())));
@@ -268,4 +268,18 @@ public class MainActivityTest extends BaseTest {
.check(matches(isDisplayed()));
}
/*
* Take a screenshot of Mapbox Streets to monitor #1649
*/
@Test
public void testMapboxStreetsBlackAndWhite() {
// Click home and switch to Mapbox streets
onView(withContentDescription(HOME_BUTTON_STRING))
.perform(click());
onView(withText(R.string.styleMapboxStreets))
.perform(click());
takeNamedScreenshot("testMapboxStreetsBlackAndWhite");
}
}