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

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

Issue 1945643003: Revert of Android integration tests for PaymentRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@address-in-result
Patch Set: Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
deleted file mode 100644
index a3c6d3e1ade2cb6f15e0ce5ddbab95a6c3c6a669..0000000000000000000000000000000000000000
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/payments/PaymentRequestNoShippingTest.java
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.chrome.browser.payments;
-
-import android.test.suitebuilder.annotation.MediumTest;
-
-import org.chromium.chrome.browser.autofill.AutofillTestHelper;
-import org.chromium.chrome.browser.autofill.PersonalDataManager.CreditCard;
-
-import java.util.concurrent.ExecutionException;
-import java.util.concurrent.TimeoutException;
-
-/**
- * A payment integration test with a single card and no shipping address.
- */
-public class PaymentRequestNoShippingTest extends PaymentRequestTestBase {
- public PaymentRequestNoShippingTest() {
- super("payment_request_no_shipping_test.html");
- }
-
- @Override
- public void onMainActivityStarted()
- throws InterruptedException, ExecutionException, TimeoutException {
- new AutofillTestHelper().setCreditCard(new CreditCard("", "https://www.example.com", true,
- true, "Jon Smith", "4111111111111111", "Visa ***1111", "12", "2050", "visa", 0));
- }
-
- @MediumTest
- public void testCloseDialog()
- throws InterruptedException, ExecutionException, TimeoutException {
- triggerPaymentUI();
- clickClosePaymentUIButton();
- expectResultContains(new String[] {"Request cancelled"});
- }
-
- @MediumTest
- public void testEditAndCloseDialog()
- throws InterruptedException, ExecutionException, TimeoutException {
- triggerPaymentUI();
- clickSecondaryPaymentUIButton();
- clickClosePaymentUIButton();
- expectResultContains(new String[] {"Request cancelled"});
- }
-
- @MediumTest
- public void testEditAndCancelDialog()
- throws InterruptedException, ExecutionException, TimeoutException {
- triggerPaymentUI();
- clickSecondaryPaymentUIButton();
- clickSecondaryPaymentUIButton();
- expectResultContains(new String[] {"Request cancelled"});
- }
-
- @MediumTest
- public void testPay() throws InterruptedException, ExecutionException, TimeoutException {
- triggerPaymentUI();
- clickPrimaryPaymentUIButton();
- typeInCvc("123");
- clickPrimaryCVCPromptButton();
- waitForPaymentUIHidden();
- expectResultContains(
- new String[] {"visa", "4111111111111111", "12", "2050", "123", "Jon Smith"});
- }
-}

Powered by Google App Engine
This is Rietveld 408576698