mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
add davdroid screenshot
add translation
This commit is contained in:
parent
5b754ae51d
commit
ba18ef206f
2 changed files with 25 additions and 0 deletions
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue