diff --git a/.travis.yml b/.travis.yml index 1115f292ad..4e9ddcc156 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ script: - ./gradlew :installDebug - ./gradlew :installDebugAndroidTest # run sample instrumented unit test -# - adb shell am instrument -w -e debug false -e class com.owncloud.android.datamodel.OCFileUnitTest com.owncloud.android.test/android.support.test.runner.AndroidJUnitRunner + - adb shell am instrument -w -e debug false -e class com.owncloud.android.uiautomator.InitialTest com.nextcloud.android.beta.test/android.support.test.runner.AndroidJUnitRunner env: global: - secure: h4Y7ZvgbvOj5T71ubRcw3Fy3KXF8qHugRFLGK3q2R9YuRsDAf8XH+Y/UiXyH8sac2QSj7Zlny1kA1DEJgwhTXs9wsAVKVJCQNTJGEvhm/4uQgPeNMzMv07Lqe8V+KUBsFH5qhfPJO357ERW0k2f2qljoLSHtHStclt7iGvFdynA= diff --git a/androidTest/java/com/owncloud/android/uiautomator/InitialTest.java b/androidTest/java/com/owncloud/android/uiautomator/InitialTest.java index 7dcc9c9d14..d2ca699d6e 100644 --- a/androidTest/java/com/owncloud/android/uiautomator/InitialTest.java +++ b/androidTest/java/com/owncloud/android/uiautomator/InitialTest.java @@ -18,10 +18,6 @@ package com.owncloud.android.uiautomator; -import org.junit.Before; -import org.junit.Test; -import org.junit.runner.RunWith; - import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; @@ -36,6 +32,9 @@ import android.support.test.uiautomator.UiObjectNotFoundException; import android.support.test.uiautomator.UiSelector; import android.support.test.uiautomator.Until; +import org.junit.Before; +import org.junit.Test; +import org.junit.runner.RunWith; import static org.hamcrest.CoreMatchers.notNullValue; import static org.junit.Assert.assertThat; @@ -47,7 +46,7 @@ import static org.junit.Assert.assertThat; @SdkSuppress(minSdkVersion = 18) public class InitialTest { - private static final String OWNCLOUD_APP_PACKAGE = "com.owncloud.android"; + private static final String OWNCLOUD_APP_PACKAGE = "com.nextcloud.client"; private static final String ANDROID_SETTINGS_PACKAGE = "com.android.settings"; private static final String SETTINGS_DATA_USAGE_OPTION = "Data usage";