summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-03-30 18:37:39 +0200
committerParménides GV <parmegv@sdf.org>2015-03-30 18:37:39 +0200
commit66673b5b60eb99d5682a440f6d90a08ccb1835b6 (patch)
treeadb038d4ace3a676b4ca173878654739018e174f
parent9ddbecd55d29923543f224d773c5c16e98276332 (diff)
Wait for the vpn certificate download to start vpn in test
-rw-r--r--app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java12
1 files changed, 7 insertions, 5 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 bcabc46c..d2fb9901 100644
--- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
+++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
@@ -162,26 +162,28 @@ public class testDashboardIntegration extends ActivityInstrumentationTestCase2<D
changeProvider("demo.bitmask.net");
connectVpn();
disconnectVpn();
-
- changeProvider("calyx.net");
- connectVpn();
- disconnectVpn();
changeProvider("riseup.net");
connectVpn();
disconnectVpn();
+
+ changeProvider("calyx.net");
+ connectVpn();
+ disconnectVpn();
}
private void changeProvider(String provider) {
tapSwitchProvider();
solo.clickOnText(provider);
useRegistered();
+ solo.waitForText("Downloading VPN certificate");
+ assertDisconnected();
}
private void connectVpn() {
Switch vpn_switch = (Switch)solo.getView(R.id.eipSwitch);
assertFalse(vpn_switch.isChecked());
-
+
solo.clickOnView(vpn_switch);
turningEipOn();
}