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

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

Issue 2163693002: [Merge M-53] Credit card editor for PaymentRequest UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 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/PaymentRequestIncompletePhoneTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java
index f3f7986fcd441cd16b9b9ca73aea347290049b18..4d159bb954189197d93e8cc6e153e109eeac24e7 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompletePhoneTest.java
@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.payments;
-import android.content.DialogInterface;
import android.test.suitebuilder.annotation.MediumTest;
import org.chromium.chrome.R;
@@ -18,6 +17,8 @@ import java.util.concurrent.TimeoutException;
/**
* A payment integration test for a merchant that requests phone number from a user that has
* incomplete phone number stored on disk.
+ *
+ * TODO(rouslan): Add a test to fill in the valid phone number and submit it to the merchant.
*/
public class PaymentRequestIncompletePhoneTest extends PaymentRequestTestBase {
public PaymentRequestIncompletePhoneTest() {
@@ -51,19 +52,4 @@ public class PaymentRequestIncompletePhoneTest extends PaymentRequestTestBase {
clickAndWait(R.id.close_button, mDismissed);
expectResultContains(new String[] {"Request cancelled"});
}
-
- /** Update the phone number with valid data and provide that to the merchant. */
- @MediumTest
- public void testEditIncompletePhoneAndPay()
- throws InterruptedException, ExecutionException, TimeoutException {
- triggerUIAndWait(mReadyForInput);
- clickInContactInfoAndWait(R.id.payments_section, mReadyForInput);
- clickInContactInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit);
- setTextInEditorAndWait(new String[] {"555-555-5555"}, mEditorTextUpdate);
- clickInEditorAndWait(R.id.payments_edit_done_button, mReadyToPay);
- clickAndWait(R.id.button_primary, mReadyForUnmaskInput);
- setTextInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", mReadyToUnmask);
- clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, mDismissed);
- expectResultContains(new String[] {"555-555-5555"});
- }
}

Powered by Google App Engine
This is Rietveld 408576698