Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1625)

Unified Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java

Issue 2081533002: Edit contacts UI for PaymentRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@contactDetails
Patch Set: Addressed comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
index 6e014e663eac5be03a3c86bb153ea919f5ee5c77..1fc77844fc6f7d1bc3789bf8bb39b36aa4759c50 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
@@ -60,8 +60,7 @@ public class PaymentRequestNoShippingTest extends PaymentRequestTestBase {
TimeoutException {
triggerUIAndWait(mReadyToPay);
clickAndWait(R.id.button_primary, mReadyForUnmaskInput);
- clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_NEGATIVE,
- mReadyForUnmaskInput.getTarget(), mResultReady);
+ clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_NEGATIVE, mResultReady);
clickAndWait(R.id.ok_button, mDismissed);
expectResultContains(new String[] {"Request cancelled"});
}
@@ -70,10 +69,8 @@ public class PaymentRequestNoShippingTest extends PaymentRequestTestBase {
public void testPay() throws InterruptedException, ExecutionException, TimeoutException {
triggerUIAndWait(mReadyToPay);
clickAndWait(R.id.button_primary, mReadyForUnmaskInput);
- typeInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123",
- mReadyForUnmaskInput.getTarget(), mReadyToUnmask);
- clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE,
- mReadyToUnmask.getTarget(), mDismissed);
+ setTextInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", mReadyToUnmask);
+ clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, mDismissed);
expectResultContains(new String[] {"Jon Doe", "4111111111111111", "12", "2050", "visa",
"123"});
}

Powered by Google App Engine
This is Rietveld 408576698