aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/androidTest
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-06-14 22:33:58 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-06-17 18:52:21 +0200
commitae199313ee39c27985cca375a7fbd985fe28e1fd (patch)
treeed615c44e1ff2552412704c7f808b547d545ddab /OpenKeychain/src/androidTest
parentdb0266c0aeefb5f788625f6ee2a7be733cace454 (diff)
downloadopen-keychain-ae199313ee39c27985cca375a7fbd985fe28e1fd.tar.gz
open-keychain-ae199313ee39c27985cca375a7fbd985fe28e1fd.tar.bz2
open-keychain-ae199313ee39c27985cca375a7fbd985fe28e1fd.zip
instrument: change handling in PassphraseDialogActivity to work with espresso
Diffstat (limited to 'OpenKeychain/src/androidTest')
-rw-r--r--OpenKeychain/src/androidTest/java/org/sufficientlysecure/keychain/EncryptDecryptTests.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenKeychain/src/androidTest/java/org/sufficientlysecure/keychain/EncryptDecryptTests.java b/OpenKeychain/src/androidTest/java/org/sufficientlysecure/keychain/EncryptDecryptTests.java
index 28fbe3aa9..604c77ece 100644
--- a/OpenKeychain/src/androidTest/java/org/sufficientlysecure/keychain/EncryptDecryptTests.java
+++ b/OpenKeychain/src/androidTest/java/org/sufficientlysecure/keychain/EncryptDecryptTests.java
@@ -46,6 +46,7 @@ import static android.support.test.espresso.action.ViewActions.typeText;
import static android.support.test.espresso.matcher.RootMatchers.isDialog;
import static android.support.test.espresso.matcher.RootMatchers.isPlatformPopup;
import static android.support.test.espresso.matcher.ViewMatchers.withId;
+import static android.support.test.espresso.matcher.ViewMatchers.withText;
import static org.sufficientlysecure.keychain.actions.CustomActions.actionOpenDrawer;
import static org.sufficientlysecure.keychain.actions.CustomActions.tokenEncryptViewAddToken;
@@ -96,8 +97,11 @@ public class EncryptDecryptTests {
pressBack();
onView(withId(R.id.decrypt_from_clipboard)).perform(click());
- // synchronization with passphrase caching thing doesn't work
- onView(withId(R.id.passphrase_passphrase)).inRoot(isPlatformPopup()).perform(typeText("x"));
+ {
+ onView(withId(R.id.passphrase_passphrase)).perform(typeText("x"));
+
+ onView(withText(R.string.btn_unlock)).perform(click());
+ }
}