diff options
author | cyBerta <cyberta@riseup.net> | 2017-10-09 16:26:11 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2017-10-13 12:47:11 +0200 |
commit | ee442a9ee54face7a8f71fc0428ff6d1184e382f (patch) | |
tree | aacf3b8e8a906e9e10d30985750c5a72c59c9c77 /app | |
parent | 11a11f25e0981d51dd19ee3e7849de1a9f563ec4 (diff) |
#8759 fix failing tests
Diffstat (limited to 'app')
-rw-r--r-- | app/src/androidTest/java/se/leap/bitmaskclient/test/VpnTestController.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/VpnTestController.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/VpnTestController.java index d339ab26..93b1da47 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/VpnTestController.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/VpnTestController.java @@ -33,7 +33,7 @@ public class VpnTestController { Button button = getVpnButton(); if(!isVpnButton(button)) throw new IllegalStateException(); - solo.clickOnView(button); + solo.clickOnButton(String.valueOf(button.getText())); } protected Button getVpnButton() { @@ -93,8 +93,6 @@ public class VpnTestController { protected void turningEipOff() { okToBrowserWarning(); - sayOkToDisconnect(); - int max_seconds_until_connected = 120; Condition condition = new Condition() { @@ -123,6 +121,7 @@ public class VpnTestController { solo.clickOnButton(disconnect); } + @SuppressWarnings("unused") private void sayOkToDisconnect() throws IllegalStateException { boolean disconnect_vpn_appeared = solo.waitForActivity(DisconnectVPN.class); if(disconnect_vpn_appeared){ |