summaryrefslogtreecommitdiff
path: root/app/src/androidTest/java
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-04-29 12:47:43 +0200
committerParménides GV <parmegv@sdf.org>2015-04-29 12:47:43 +0200
commit8833acbafe00eb2941cfa052cb679fc2684b5290 (patch)
treeaf1e225d222d0e5df02ec5364b16e9efc1a90b25 /app/src/androidTest/java
parentf008b5ec8e1c74968e4a605d2de5423edf91b854 (diff)
Dynamically load user session fragment.
Tests click new button, instead of action bar's. Fixing more bugs...
Diffstat (limited to 'app/src/androidTest/java')
-rw-r--r--app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java6
1 files changed, 5 insertions, 1 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 262310bd..7551091b 100644
--- a/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
+++ b/app/src/androidTest/java/se/leap/bitmaskclient/test/testDashboardIntegration.java
@@ -169,7 +169,11 @@ public class testDashboardIntegration extends ActivityInstrumentationTestCase2<D
}
private void clickLogIn() {
- solo.clickOnActionBarItem(R.id.user_session_button);
+ solo.clickOnView(getLogInButton());
+ }
+
+ private View getLogInButton() {
+ return solo.getView(R.id.user_session_button);
}
private void logIn(String username, String password) {
solo.enterText(0, username);