summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-04-28 13:48:20 +0200
committerParménides GV <parmegv@sdf.org>2015-04-28 13:48:20 +0200
commit834fe99739264d498e3e8c87002b0e92cf8160a0 (patch)
tree56dff5b31c73d850a597ed83afb03347ac6d1e09 /app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
parent232b9d1b562c752a281935f05af55e1b13f33127 (diff)
Take screenshots of the changes.
Diffstat (limited to 'app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java')
-rw-r--r--app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
index 18d7b45d..13ca4431 100644
--- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
+++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
@@ -30,6 +30,7 @@ public class testDashboardIntegration extends ActivityInstrumentationTestCase2<D
super.setUp();
context = getInstrumentation().getContext();
solo = new Solo(getInstrumentation(), getActivity());
+ Screenshot.initialize(solo);
ConnectionManager.setMobileDataEnabled(true, context);
solo.unlockScreen();
if (solo.searchText(solo.getString(R.string.configuration_wizard_title)))
@@ -46,11 +47,17 @@ public class testDashboardIntegration extends ActivityInstrumentationTestCase2<D
* I cannot automate that dialog.
*/
public void testOnOffOpenVpn() {
+ Screenshot.take("Initial UI");
clickVpnButton();
+ Screenshot.setTimeToSleep(5);
+ Screenshot.takeWithSleep("Turning VPN on");
turningEipOn();
+ Screenshot.setTimeToSleep(0.5);
+ Screenshot.takeWithSleep("VPN turned on");
clickVpnButton();
turningEipOff();
+ Screenshot.take("VPN turned off");
clickVpnButton();
turningEipOn();