enable all Espresso tests when run from Android Studio
This should not make them run in the .gitlab-ci.yml setup, since that is set to ignore @LargeTest
This commit is contained in:
parent
4662c0bdaa
commit
3afd269a9c
@ -177,6 +177,7 @@ public class MainActivityEspressoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@Test
|
||||||
public void showSettings() {
|
public void showSettings() {
|
||||||
ViewInteraction settingsBottonNavButton = onView(
|
ViewInteraction settingsBottonNavButton = onView(
|
||||||
allOf(withText(R.string.menu_settings), isDisplayed()));
|
allOf(withText(R.string.menu_settings), isDisplayed()));
|
||||||
@ -211,6 +212,7 @@ public class MainActivityEspressoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@Test
|
||||||
public void showUpdates() {
|
public void showUpdates() {
|
||||||
ViewInteraction updatesBottonNavButton = onView(allOf(withText(R.string.main_menu__updates), isDisplayed()));
|
ViewInteraction updatesBottonNavButton = onView(allOf(withText(R.string.main_menu__updates), isDisplayed()));
|
||||||
updatesBottonNavButton.perform(click());
|
updatesBottonNavButton.perform(click());
|
||||||
@ -218,6 +220,7 @@ public class MainActivityEspressoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@Test
|
||||||
public void startSwap() {
|
public void startSwap() {
|
||||||
if (!BuildConfig.FLAVOR.startsWith("full")) {
|
if (!BuildConfig.FLAVOR.startsWith("full")) {
|
||||||
return;
|
return;
|
||||||
@ -233,6 +236,7 @@ public class MainActivityEspressoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@Test
|
||||||
public void showCategories() {
|
public void showCategories() {
|
||||||
if (!BuildConfig.FLAVOR.startsWith("full")) {
|
if (!BuildConfig.FLAVOR.startsWith("full")) {
|
||||||
return;
|
return;
|
||||||
@ -258,6 +262,7 @@ public class MainActivityEspressoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@Test
|
||||||
public void showLatest() {
|
public void showLatest() {
|
||||||
if (!BuildConfig.FLAVOR.startsWith("full")) {
|
if (!BuildConfig.FLAVOR.startsWith("full")) {
|
||||||
return;
|
return;
|
||||||
@ -280,6 +285,7 @@ public class MainActivityEspressoTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LargeTest
|
@LargeTest
|
||||||
|
@Test
|
||||||
public void showSearch() {
|
public void showSearch() {
|
||||||
onView(allOf(withText(R.string.menu_settings), isDisplayed())).perform(click());
|
onView(allOf(withText(R.string.menu_settings), isDisplayed())).perform(click());
|
||||||
onView(withId(R.id.fab_search)).check(doesNotExist());
|
onView(withId(R.id.fab_search)).check(doesNotExist());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user