mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Merge pull request #4932 from nextcloud/useTestOrchestrator
Use android test orchestrator
This commit is contained in:
commit
10789e900c
2 changed files with 5 additions and 1 deletions
|
@ -151,7 +151,7 @@ android {
|
|||
|
||||
buildTypes {
|
||||
debug {
|
||||
testCoverageEnabled (project.hasProperty('coverage'))
|
||||
testCoverageEnabled true
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -184,6 +184,7 @@ android {
|
|||
|
||||
testOptions {
|
||||
unitTests.returnDefaultValues = true
|
||||
execution 'ANDROIDX_TEST_ORCHESTRATOR'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -358,6 +359,7 @@ dependencies {
|
|||
androidTestImplementation 'androidx.test:rules:1.2.0'
|
||||
// Android JUnit Runner
|
||||
androidTestImplementation 'androidx.test:runner:1.2.0'
|
||||
androidTestUtil 'androidx.test:orchestrator:1.1.0'
|
||||
|
||||
// Espresso core
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
|
||||
|
|
|
@ -32,6 +32,7 @@ import tools.fastlane.screengrab.locale.LocaleTestRule;
|
|||
import static androidx.test.espresso.Espresso.onData;
|
||||
import static androidx.test.espresso.Espresso.onView;
|
||||
import static androidx.test.espresso.action.ViewActions.click;
|
||||
import static androidx.test.espresso.action.ViewActions.swipeUp;
|
||||
import static androidx.test.espresso.matcher.ViewMatchers.withId;
|
||||
import static androidx.test.espresso.matcher.ViewMatchers.withText;
|
||||
import static org.hamcrest.core.AnyOf.anyOf;
|
||||
|
@ -133,6 +134,7 @@ public class ScreenshotsIT extends AbstractIT {
|
|||
ActivityScenario.launch(FileDisplayActivity.class);
|
||||
|
||||
onView(withId(R.id.drawer_layout)).perform(DrawerActions.open());
|
||||
onView(withId(R.id.nav_view)).perform(swipeUp());
|
||||
onView(anyOf(withText(R.string.drawer_synced_folders), withId(R.id.nav_synced_folders))).perform(click());
|
||||
|
||||
Screengrab.screenshot("05_autoUpload");
|
||||
|
|
Loading…
Reference in a new issue