| 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 4d159bb954189197d93e8cc6e153e109eeac24e7..f3f7986fcd441cd16b9b9ca73aea347290049b18 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,6 +4,7 @@
|
|
|
| package org.chromium.chrome.browser.payments;
|
|
|
| +import android.content.DialogInterface;
|
| import android.test.suitebuilder.annotation.MediumTest;
|
|
|
| import org.chromium.chrome.R;
|
| @@ -17,8 +18,6 @@
|
| /**
|
| * 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() {
|
| @@ -52,4 +51,19 @@
|
| 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"});
|
| + }
|
| }
|
|
|