Commit 52ef353d authored by Liquan (Max) Gu's avatar Liquan (Max) Gu Committed by Commit Bot

Revert "🤠 Disable flaky payment chrome_public_test_apk on Marshmallow."

Reason for revert:
The tests were disabled on Marshmallow because they were caused by
crbug.com/1094008. Now that the root issue has been fixed, I am
reenabling the tests.

Original CL:
https://chromium-review.googlesource.com/c/chromium/src/+/2376465

Bug: 1102320
Change-Id: I687d099b28815518348650a3a24cb19e3b511acd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2380091Reviewed-by: default avatarSahel Sharify <sahel@chromium.org>
Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: default avatarLiquan (Max) Gu <maxlg@chromium.org>
Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802318}
parent 314228d0
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.payments; package org.chromium.chrome.browser.payments;
import android.os.Build.VERSION_CODES;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
...@@ -17,7 +16,6 @@ import org.junit.Test; ...@@ -17,7 +16,6 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
...@@ -102,11 +100,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -102,11 +100,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testReject() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testReject() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testReject", mRule.getDismissed()); mRule.clickNodeAndWait("testReject", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -134,11 +128,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -134,11 +128,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testThrow() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testThrow() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testThrow", mRule.getDismissed()); mRule.clickNodeAndWait("testThrow", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -151,11 +141,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -151,11 +141,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testThrowBasicCard() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testThrowBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testThrow", mRule.getReadyToPay()); mRule.triggerUIAndWait("testThrow", mRule.getReadyToPay());
...@@ -170,11 +156,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -170,11 +156,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testDetails() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testDetails() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testDetails", mRule.getDismissed()); mRule.clickNodeAndWait("testDetails", mRule.getDismissed());
// Look for the this exact return value to ensure that the browser redacts some details // Look for the this exact return value to ensure that the browser redacts some details
...@@ -197,11 +179,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -197,11 +179,7 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testDetailsBasicCard() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testDetailsBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay()); mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay());
......
...@@ -15,7 +15,6 @@ import static androidx.test.espresso.matcher.ViewMatchers.withId; ...@@ -15,7 +15,6 @@ import static androidx.test.espresso.matcher.ViewMatchers.withId;
import static androidx.test.espresso.matcher.ViewMatchers.withText; import static androidx.test.espresso.matcher.ViewMatchers.withText;
import android.os.Build; import android.os.Build;
import android.os.Build.VERSION_CODES;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import android.support.test.uiautomator.UiDevice; import android.support.test.uiautomator.UiDevice;
...@@ -370,9 +369,6 @@ public class ExpandablePaymentHandlerTest { ...@@ -370,9 +369,6 @@ public class ExpandablePaymentHandlerTest {
sdk_is_greater_than = Build.VERSION_CODES.LOLLIPOP_MR1, sdk_is_greater_than = Build.VERSION_CODES.LOLLIPOP_MR1,
sdk_is_less_than = Build.VERSION_CODES.N) sdk_is_less_than = Build.VERSION_CODES.N)
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf.
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void public void
testNavigateBackWithSystemBackButton() throws Throwable { testNavigateBackWithSystemBackButton() throws Throwable {
startDefaultServer(); startDefaultServer();
...@@ -423,11 +419,7 @@ public class ExpandablePaymentHandlerTest { ...@@ -423,11 +419,7 @@ public class ExpandablePaymentHandlerTest {
@SmallTest @SmallTest
@Feature({"Payments"}) @Feature({"Payments"})
@ParameterAnnotations.UseMethodParameter(GoodCertParams.class) @ParameterAnnotations.UseMethodParameter(GoodCertParams.class)
@DisableIf. public void testSecureConnectionShowUi(int goodCertificate) throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testSecureConnectionShowUi(int goodCertificate) throws Throwable {
startServer(goodCertificate); startServer(goodCertificate);
PaymentHandlerCoordinator paymentHandler = createPaymentHandlerAndShow(mDefaultIsIncognito); PaymentHandlerCoordinator paymentHandler = createPaymentHandlerAndShow(mDefaultIsIncognito);
waitForTitleShown(paymentHandler.getWebContentsForTest()); waitForTitleShown(paymentHandler.getWebContentsForTest());
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.payments; package org.chromium.chrome.browser.payments;
import android.os.Build.VERSION_CODES;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
...@@ -17,7 +16,6 @@ import org.junit.Test; ...@@ -17,7 +16,6 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
...@@ -74,11 +72,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -74,11 +72,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testNoEventHandler() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testNoEventHandler() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testNoHandler", mRule.getDismissed()); mRule.clickNodeAndWait("testNoHandler", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -91,11 +85,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -91,11 +85,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testNoEventHandlerBasicCard() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testNoEventHandlerBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testNoHandler", mRule.getReadyToPay()); mRule.triggerUIAndWait("testNoHandler", mRule.getReadyToPay());
...@@ -110,11 +100,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -110,11 +100,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testReject() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testReject() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testReject", mRule.getDismissed()); mRule.clickNodeAndWait("testReject", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -127,11 +113,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -127,11 +113,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testRejectBasicCard() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testRejectBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testReject", mRule.getReadyToPay()); mRule.triggerUIAndWait("testReject", mRule.getReadyToPay());
...@@ -146,11 +128,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -146,11 +128,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testThrow() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testThrow() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testThrow", mRule.getDismissed()); mRule.clickNodeAndWait("testThrow", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -178,11 +156,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -178,11 +156,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testDetails() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testDetails() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testDetails", mRule.getDismissed()); mRule.clickNodeAndWait("testDetails", mRule.getDismissed());
// Look for the this exact return value to ensure that the browser redacts some details // Look for the this exact return value to ensure that the browser redacts some details
...@@ -205,11 +179,7 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -205,11 +179,7 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testDetailsBasicCard() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testDetailsBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay()); mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay());
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.payments; package org.chromium.chrome.browser.payments;
import android.os.Build.VERSION_CODES;
import android.support.test.InstrumentationRegistry; import android.support.test.InstrumentationRegistry;
import android.view.View; import android.view.View;
...@@ -20,7 +19,6 @@ import org.junit.runner.RunWith; ...@@ -20,7 +19,6 @@ import org.junit.runner.RunWith;
import org.chromium.base.test.util.CallbackHelper; import org.chromium.base.test.util.CallbackHelper;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
...@@ -88,11 +86,7 @@ public class PaymentHandlerEnableDelegationsTest { ...@@ -88,11 +86,7 @@ public class PaymentHandlerEnableDelegationsTest {
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@MediumTest @MediumTest
@DisableIf. public void testShippingDelegation() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testShippingDelegation() throws Throwable {
installPaymentHandlerWithDelegations("['shippingAddress']"); installPaymentHandlerWithDelegations("['shippingAddress']");
// The pay button should be enabled when shipping address is requested and the selected // The pay button should be enabled when shipping address is requested and the selected
// payment instrument can provide it. // payment instrument can provide it.
...@@ -120,11 +114,7 @@ public class PaymentHandlerEnableDelegationsTest { ...@@ -120,11 +114,7 @@ public class PaymentHandlerEnableDelegationsTest {
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@MediumTest @MediumTest
@DisableIf. public void testShippingAndContactInfoDelegation() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testShippingAndContactInfoDelegation() throws Throwable {
installPaymentHandlerWithDelegations( installPaymentHandlerWithDelegations(
"['shippingAddress', 'payerName', 'payerEmail', 'payerPhone']"); "['shippingAddress', 'payerName', 'payerEmail', 'payerPhone']");
// The pay button should be enabled when shipping address and payer's contact information // The pay button should be enabled when shipping address and payer's contact information
...@@ -155,11 +145,7 @@ public class PaymentHandlerEnableDelegationsTest { ...@@ -155,11 +145,7 @@ public class PaymentHandlerEnableDelegationsTest {
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@MediumTest @MediumTest
@DisableIf. public void testPartialDelegationContactInfoNotSupported() throws Throwable {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testPartialDelegationContactInfoNotSupported() throws Throwable {
installPaymentHandlerWithDelegations("['shippingAddress']"); installPaymentHandlerWithDelegations("['shippingAddress']");
createPaymentRequestAndWaitFor( createPaymentRequestAndWaitFor(
"{requestShipping: true, requestPayerName: true, requestPayerEmail: true}", "{requestShipping: true, requestPayerName: true, requestPayerEmail: true}",
......
...@@ -8,8 +8,6 @@ import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.DECEMB ...@@ -8,8 +8,6 @@ import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.DECEMB
import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.FIRST_BILLING_ADDRESS; import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.FIRST_BILLING_ADDRESS;
import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.NEXT_YEAR; import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.NEXT_YEAR;
import android.os.Build.VERSION_CODES;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
import org.junit.Before; import org.junit.Before;
...@@ -19,7 +17,6 @@ import org.junit.Test; ...@@ -19,7 +17,6 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.autofill.AutofillTestHelper; import org.chromium.chrome.browser.autofill.AutofillTestHelper;
...@@ -114,11 +111,7 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt ...@@ -114,11 +111,7 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt
@Test @Test
@MediumTest @MediumTest
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testPayWithBasicCard() throws TimeoutException {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testPayWithBasicCard() throws TimeoutException {
mPaymentRequestTestRule.openPageAndClickNodeAndWait( mPaymentRequestTestRule.openPageAndClickNodeAndWait(
"checkBasicVisa", mPaymentRequestTestRule.getCanMakePaymentQueryResponded()); "checkBasicVisa", mPaymentRequestTestRule.getCanMakePaymentQueryResponded());
mPaymentRequestTestRule.expectResultContains(new String[] {"true"}); mPaymentRequestTestRule.expectResultContains(new String[] {"true"});
...@@ -142,11 +135,7 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt ...@@ -142,11 +135,7 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt
@Test @Test
@MediumTest @MediumTest
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testAddMasterCard() throws TimeoutException {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testAddMasterCard() throws TimeoutException {
mPaymentRequestTestRule.triggerUIAndWait(mPaymentRequestTestRule.getReadyToPay()); mPaymentRequestTestRule.triggerUIAndWait(mPaymentRequestTestRule.getReadyToPay());
mPaymentRequestTestRule.clickInPaymentMethodAndWait( mPaymentRequestTestRule.clickInPaymentMethodAndWait(
R.id.payments_section, mPaymentRequestTestRule.getReadyForInput()); R.id.payments_section, mPaymentRequestTestRule.getReadyForInput());
......
...@@ -8,8 +8,6 @@ import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.DECEMB ...@@ -8,8 +8,6 @@ import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.DECEMB
import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.FIRST_BILLING_ADDRESS; import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.FIRST_BILLING_ADDRESS;
import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.NEXT_YEAR; import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.NEXT_YEAR;
import android.os.Build.VERSION_CODES;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
import org.junit.ClassRule; import org.junit.ClassRule;
...@@ -18,7 +16,6 @@ import org.junit.Test; ...@@ -18,7 +16,6 @@ import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.chromium.base.test.util.CommandLineFlags; import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.DisableIf;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.chrome.R; import org.chromium.chrome.R;
import org.chromium.chrome.browser.autofill.AutofillTestHelper; import org.chromium.chrome.browser.autofill.AutofillTestHelper;
...@@ -68,11 +65,7 @@ public class PaymentRequestRemoveBillingAddressTest implements MainActivityStart ...@@ -68,11 +65,7 @@ public class PaymentRequestRemoveBillingAddressTest implements MainActivityStart
@Test @Test
@MediumTest @MediumTest
@Feature({"Payments"}) @Feature({"Payments"})
@DisableIf. public void testPayWithCard() throws TimeoutException {
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102320")
public void
testPayWithCard() throws TimeoutException {
mPaymentRequestTestRule.triggerUIAndWait(mPaymentRequestTestRule.getReadyForInput()); mPaymentRequestTestRule.triggerUIAndWait(mPaymentRequestTestRule.getReadyForInput());
// Expand the payment section. // Expand the payment section.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment