From ffc2a0cbae78aa71e7ca5a64c76b75f1c5bba664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Wed, 24 Jun 2015 19:05:39 +0200 Subject: Tuned some times, refactoring tests --- .../java/se/leap/bitmaskclient/test/testVpnFragment.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'app/src/androidTest/java/se/leap/bitmaskclient/test/testVpnFragment.java') diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testVpnFragment.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testVpnFragment.java index d23be601..12cb8c14 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testVpnFragment.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testVpnFragment.java @@ -1,21 +1,14 @@ package se.leap.bitmaskclient.test; -public class testVpnFragment extends BaseTestDashboard { - - @Override - protected void setUp() throws Exception { - super.setUp(); - Screenshot.initialize(solo); - } +public class testVpnFragment extends BaseTestDashboardFragment { /** * This test will fail if Android does not trust VPN connection. * I cannot automate that dialog. */ public void testOnOffOpenVpn() { - Screenshot.take("Initial UI"); vpn_controller.clickVpnButton(); - Screenshot.setTimeToSleep(5); + Screenshot.setTimeToSleep(8); Screenshot.takeWithSleep("Turning VPN on"); vpn_controller.turningEipOn(); Screenshot.setTimeToSleep(0.5); -- cgit v1.2.3