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.chrome.R; | 9 import org.chromium.chrome.R; |
10 import org.chromium.chrome.browser.autofill.AutofillTestHelper; | 10 import org.chromium.chrome.browser.autofill.AutofillTestHelper; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 @MediumTest | 48 @MediumTest |
49 public void testEditAndCancelDialog() throws InterruptedException, Execution
Exception, | 49 public void testEditAndCancelDialog() throws InterruptedException, Execution
Exception, |
50 TimeoutException { | 50 TimeoutException { |
51 triggerUIAndWait(mReadyForInput); | 51 triggerUIAndWait(mReadyForInput); |
52 clickAndWait(R.id.button_secondary, mReadyForInput); | 52 clickAndWait(R.id.button_secondary, mReadyForInput); |
53 clickAndWait(R.id.button_secondary, mDismissed); | 53 clickAndWait(R.id.button_secondary, mDismissed); |
54 expectResultContains(new String[] {"Request cancelled"}); | 54 expectResultContains(new String[] {"Request cancelled"}); |
55 } | 55 } |
| 56 |
| 57 @MediumTest |
| 58 public void testPayAndCancelDialog() throws InterruptedException, ExecutionE
xception, |
| 59 TimeoutException { |
| 60 triggerUIAndWait(mReadyToPay); |
| 61 clickAndWait(R.id.button_primary, mReadyToUnmask); |
| 62 cancelCardUnmaskDialogAndWait(mReadyToUnmask.getTarget(), mResultReady); |
| 63 clickAndWait(R.id.ok_button, mDismissed); |
| 64 expectResultContains(new String[] {"Request cancelled"}); |
| 65 } |
56 } | 66 } |
OLD | NEW |