| OLD | NEW |
| 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.test.suitebuilder.annotation.MediumTest; | 7 import android.test.suitebuilder.annotation.MediumTest; |
| 8 | 8 |
| 9 import org.chromium.base.test.util.Feature; | 9 import org.chromium.base.test.util.Feature; |
| 10 import org.chromium.chrome.R; | 10 import org.chromium.chrome.R; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 "4111111111111111", "1111", "12", "2050", "visa", R.drawable.pr_
visa, | 39 "4111111111111111", "1111", "12", "2050", "visa", R.drawable.pr_
visa, |
| 40 billingAddressId, "" /* serverId */)); | 40 billingAddressId, "" /* serverId */)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 /** Attempt to update the phone number with invalid data and cancel the tran
saction. */ | 43 /** Attempt to update the phone number with invalid data and cancel the tran
saction. */ |
| 44 @MediumTest | 44 @MediumTest |
| 45 @Feature({"Payments"}) | 45 @Feature({"Payments"}) |
| 46 public void testEditIncompletePhoneAndCancel() | 46 public void testEditIncompletePhoneAndCancel() |
| 47 throws InterruptedException, ExecutionException, TimeoutException { | 47 throws InterruptedException, ExecutionException, TimeoutException { |
| 48 triggerUIAndWait(mReadyForInput); | 48 triggerUIAndWait(mReadyForInput); |
| 49 clickInContactInfoAndWait(R.id.payments_section, mReadyForInput); | 49 clickInPayerInfoAndWait(R.id.payments_section, mReadyForInput); |
| 50 clickInContactInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit
); | 50 clickInPayerInfoAndWait(R.id.payments_first_radio_button, mReadyToEdit); |
| 51 setTextInEditorAndWait(new String[] {"---"}, mEditorTextUpdate); | 51 setTextInEditorAndWait(new String[] {"---"}, mEditorTextUpdate); |
| 52 clickInEditorAndWait(R.id.payments_edit_done_button, mEditorValidationEr
ror); | 52 clickInEditorAndWait(R.id.payments_edit_done_button, mEditorValidationEr
ror); |
| 53 clickInEditorAndWait(R.id.payments_edit_cancel_button, mReadyForInput); | 53 clickInEditorAndWait(R.id.payments_edit_cancel_button, mReadyForInput); |
| 54 clickAndWait(R.id.close_button, mDismissed); | 54 clickAndWait(R.id.close_button, mDismissed); |
| 55 expectResultContains(new String[] {"Request cancelled"}); | 55 expectResultContains(new String[] {"Request cancelled"}); |
| 56 } | 56 } |
| 57 } | 57 } |
| OLD | NEW |