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

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

Issue 1964323002: Reland: Test dismissing CVC prompt for PaymentRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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.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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698