diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java index efb843f7..1fa4cf2f 100644 --- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java +++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testConfigurationWizard.java @@ -1,14 +1,6 @@ package se.leap.bitmaskclient.test; -import android.app.Instrumentation; -import android.content.Intent; -import android.graphics.drawable.Drawable; import android.test.*; -import android.view.ActionProvider; -import android.view.ContextMenu; -import android.view.MenuItem; -import android.view.SubMenu; -import android.view.View; import android.widget.*; import com.robotium.solo.*; @@ -119,47 +111,4 @@ public class testConfigurationWizard extends ActivityInstrumentationTestCase2<Co solo.clickOnText(click_text); assertTrue(solo.waitForActivity(Dashboard.class, 5000)); } - - protected void toDashboardRegistered(String provider) { - selectProvider(provider); - useRegistered(); - } - - private void useRegistered() { - String text = solo.getString(R.string.signup_or_login_button); - clickAndWaitForDashboard(text); - login(); - } - - private void login() { - long milliseconds_to_log_in = 40 * 1000; - logIn("parmegvtest10", "holahola2"); - solo.waitForDialogToClose(milliseconds_to_log_in); - assertSuccessfulLogin(); - } - - private void logIn(String username, String password) { - solo.clickOnActionBarItem(R.id.login_button); - solo.enterText(0, username); - solo.enterText(1, password); - solo.clickOnText("Log In"); - solo.waitForDialogToClose(); - } - - private void assertSuccessfulLogin() { - String message = solo.getString(R.string.succesful_authentication_message); - assertTrue(solo.waitForText(message)); - } - - private void connectAndComeBack() { - solo.clickOnView(solo.getView(R.id.eipSwitch)); - if(!solo.waitForText(solo.getString(R.string.eip_state_connected))) - fail(); - - solo.clickOnView(solo.getView(R.id.eipSwitch)); - if(!solo.waitForText(solo.getString(R.string.eip_state_not_connected))) - fail(); - - solo.clickOnMenuItem(solo.getString(R.string.switch_provider_menu_option)); - } } |