From ba18ef206f1c44981a8b668003e01ae6c1338d3b Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 14 Dec 2017 13:26:27 +0100 Subject: [PATCH] add davdroid screenshot add translation --- .../android/screenshots/ScreenshotsIT.java | 18 ++++++++++++++++++ src/main/res/values/strings.xml | 7 +++++++ 2 files changed, 25 insertions(+) diff --git a/src/androidTest/java/com/owncloud/android/screenshots/ScreenshotsIT.java b/src/androidTest/java/com/owncloud/android/screenshots/ScreenshotsIT.java index 2dafe12ee6..12847d1183 100644 --- a/src/androidTest/java/com/owncloud/android/screenshots/ScreenshotsIT.java +++ b/src/androidTest/java/com/owncloud/android/screenshots/ScreenshotsIT.java @@ -1,11 +1,13 @@ package com.owncloud.android.screenshots; +import android.content.Intent; import android.support.test.espresso.Espresso; import android.support.test.espresso.contrib.DrawerActions; import android.support.test.rule.ActivityTestRule; import com.owncloud.android.R; import com.owncloud.android.ui.activity.FileDisplayActivity; +import com.owncloud.android.ui.activity.Preferences; import junit.framework.Assert; @@ -36,6 +38,9 @@ public class ScreenshotsIT { @Rule public ActivityTestRule fileDisplayRule = new ActivityTestRule<>(FileDisplayActivity.class); + @Rule + public ActivityTestRule preferencesRule = new ActivityTestRule<>(Preferences.class, true, false); + @BeforeClass public static void beforeAll() { Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy()); @@ -103,4 +108,17 @@ public class ScreenshotsIT { Assert.assertTrue(true); // if we reach this, everything is ok } + + @Test + public void davdroidScreenshot() throws InterruptedException { + + preferencesRule.launchActivity(new Intent()); + +// onView(withId(R.id.drawer_layout)).perform(DrawerActions.open()); +// onView(withId(R.id.nav_settings)).perform(click()); + + Screengrab.screenshot("06_davdroid"); + +// Espresso.pressBack(); + } } \ No newline at end of file diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index ec30d6ae2a..a970c83ea2 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -727,4 +727,11 @@ Send Share Link + + A safe home for all your data + + + + +