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

Side by Side Diff: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestIncompleteEmailTest.java

Issue 2413833002: PaymentRequest: Rename ContactInfo to PayerInfo.
Patch Set: test Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.payments; 5 package org.chromium.chrome.browser.payments;
6 6
7 import android.content.DialogInterface; 7 import android.content.DialogInterface;
8 import android.test.suitebuilder.annotation.MediumTest; 8 import android.test.suitebuilder.annotation.MediumTest;
9 9
10 import org.chromium.base.test.util.Feature; 10 import org.chromium.base.test.util.Feature;
(...skipping 27 matching lines...) Expand all
38 "4111111111111111", "1111", "12", "2050", "visa", R.drawable.pr_ visa, 38 "4111111111111111", "1111", "12", "2050", "visa", R.drawable.pr_ visa,
39 billingAddressId, "" /* serverId */)); 39 billingAddressId, "" /* serverId */));
40 } 40 }
41 41
42 /** Attempt to update the email with invalid data and cancel the transaction . */ 42 /** Attempt to update the email with invalid data and cancel the transaction . */
43 @MediumTest 43 @MediumTest
44 @Feature({"Payments"}) 44 @Feature({"Payments"})
45 public void testEditIncompleteEmailAndCancel() 45 public void testEditIncompleteEmailAndCancel()
46 throws InterruptedException, ExecutionException, TimeoutException { 46 throws InterruptedException, ExecutionException, TimeoutException {
47 triggerUIAndWait(mReadyForInput); 47 triggerUIAndWait(mReadyForInput);
48 clickInContactInfoAndWait(R.id.payments_section, mReadyForInput); 48 clickInPayerInfoAndWait(R.id.payments_section, mReadyForInput);
49 clickInContactInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit ); 49 clickInPayerInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit);
50 setTextInEditorAndWait(new String[] {"gmail.com"}, mEditorTextUpdate); 50 setTextInEditorAndWait(new String[] {"gmail.com"}, mEditorTextUpdate);
51 clickInEditorAndWait(R.id.payments_edit_done_button, mEditorValidationEr ror); 51 clickInEditorAndWait(R.id.payments_edit_done_button, mEditorValidationEr ror);
52 clickInEditorAndWait(R.id.payments_edit_cancel_button, mReadyForInput); 52 clickInEditorAndWait(R.id.payments_edit_cancel_button, mReadyForInput);
53 clickAndWait(R.id.close_button, mDismissed); 53 clickAndWait(R.id.close_button, mDismissed);
54 expectResultContains(new String[] {"Request cancelled"}); 54 expectResultContains(new String[] {"Request cancelled"});
55 } 55 }
56 56
57 /** Update the email with valid data and provide that to the merchant. */ 57 /** Update the email with valid data and provide that to the merchant. */
58 @MediumTest 58 @MediumTest
59 @Feature({"Payments"}) 59 @Feature({"Payments"})
60 public void testEditIncompleteEmailAndPay() 60 public void testEditIncompleteEmailAndPay()
61 throws InterruptedException, ExecutionException, TimeoutException { 61 throws InterruptedException, ExecutionException, TimeoutException {
62 triggerUIAndWait(mReadyForInput); 62 triggerUIAndWait(mReadyForInput);
63 clickInContactInfoAndWait(R.id.payments_section, mReadyForInput); 63 clickInPayerInfoAndWait(R.id.payments_section, mReadyForInput);
64 clickInContactInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit ); 64 clickInPayerInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit);
65 setTextInEditorAndWait(new String[] {"jon.doe@google.com"}, mEditorTextU pdate); 65 setTextInEditorAndWait(new String[] {"jon.doe@google.com"}, mEditorTextU pdate);
66 clickInEditorAndWait(R.id.payments_edit_done_button, mReadyToPay); 66 clickInEditorAndWait(R.id.payments_edit_done_button, mReadyToPay);
67 clickAndWait(R.id.button_primary, mReadyForUnmaskInput); 67 clickAndWait(R.id.button_primary, mReadyForUnmaskInput);
68 setTextInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", mReadyTo Unmask); 68 setTextInCardUnmaskDialogAndWait(R.id.card_unmask_input, "123", mReadyTo Unmask);
69 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, mDismissed ); 69 clickCardUnmaskButtonAndWait(DialogInterface.BUTTON_POSITIVE, mDismissed );
70 expectResultContains(new String[] {"jon.doe@google.com"}); 70 expectResultContains(new String[] {"jon.doe@google.com"});
71 } 71 }
72 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698