add davdroid screenshot

add translation
This commit is contained in:
tobiasKaminsky 2017-12-14 13:26:27 +01:00 committed by tobiaskaminsky
parent 5b754ae51d
commit ba18ef206f
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
2 changed files with 25 additions and 0 deletions

View file

@ -1,11 +1,13 @@
package com.owncloud.android.screenshots; package com.owncloud.android.screenshots;
import android.content.Intent;
import android.support.test.espresso.Espresso; import android.support.test.espresso.Espresso;
import android.support.test.espresso.contrib.DrawerActions; import android.support.test.espresso.contrib.DrawerActions;
import android.support.test.rule.ActivityTestRule; import android.support.test.rule.ActivityTestRule;
import com.owncloud.android.R; import com.owncloud.android.R;
import com.owncloud.android.ui.activity.FileDisplayActivity; import com.owncloud.android.ui.activity.FileDisplayActivity;
import com.owncloud.android.ui.activity.Preferences;
import junit.framework.Assert; import junit.framework.Assert;
@ -36,6 +38,9 @@ public class ScreenshotsIT {
@Rule @Rule
public ActivityTestRule<FileDisplayActivity> fileDisplayRule = new ActivityTestRule<>(FileDisplayActivity.class); public ActivityTestRule<FileDisplayActivity> fileDisplayRule = new ActivityTestRule<>(FileDisplayActivity.class);
@Rule
public ActivityTestRule<Preferences> preferencesRule = new ActivityTestRule<>(Preferences.class, true, false);
@BeforeClass @BeforeClass
public static void beforeAll() { public static void beforeAll() {
Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy()); Screengrab.setDefaultScreenshotStrategy(new UiAutomatorScreenshotStrategy());
@ -103,4 +108,17 @@ public class ScreenshotsIT {
Assert.assertTrue(true); // if we reach this, everything is ok 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();
}
} }

View file

@ -727,4 +727,11 @@
<string name="send">Send</string> <string name="send">Send</string>
<string name="share">Share</string> <string name="share">Share</string>
<string name="link">Link</string> <string name="link">Link</string>
<string name="screenshot_grid_view">A safe home for all your data</string>
<string name="screenshot_list_view"></string>
<string name="screenshot_drawer"></string>
<string name="screenshot_multiple_accounts"></string>
<string name="screenshot_autoUpload"></string>
<string name="screenshot_davdroid"></string>
</resources> </resources>