Commit d212116d authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

🤠 Disable flaky payment chrome_public_test_apk on Marshmallow.

The following tests were flaky on Marshmallow the last ~10 build:

org.chromium.chrome.browser.payments
 ├──ExpandablePaymentHandlerChangePaymentMethodTest
 │   ├──testDetails
 │   ├──testDetailsBasicCard
 │   ├──testReject
 │   └──testThrow
 ├──ExpandablePaymentHandlerChangePaymentMethodTest
 │   └──testThrowBasicCard
 ├──ExpandablePaymentHandlerTest
 │   ├──testNavigateBackWithSystemBackButton
 │   ├──testSecureConnectionShowUi__CERT_AUTO
 │   ├──testSecureConnectionShowUi__CERT_COMMON_NAME_IS_DOMAIN
 │   └──testSecureConnectionShowUi__CERT_OK_BY_INTERMEDIATE
 ├──PaymentHandlerChangePaymentMethodTest
 │   ├──testDetails
 │   ├──testDetailsBasicCard
 │   ├──testNoEventHandlerBasicCard
 │   ├──testReject
 │   ├──testRejectBasicCard
 │   └──testThrow
 ├──PaymentHandlerEnableDelegationsTest
 │   ├──testPartialDelegationContactInfoNotSupported
 │   ├──testShippingAndContactInfoDelegation
 │   └──testShippingDelegation
 ├──PaymentRequestPaymentMethodIdentifierTest
 │   └──testAddMasterCard
 └──PaymentRequestRemoveBillingAddressTest
     └──testPayWithCard

TBR=rouslan@chromium.org

Bug: 1102320
Change-Id: I182afa734c763abb5d377c5fde8a2510e85b6794
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2283162Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785335}
parent c9f8c2f1
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
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;
...@@ -16,6 +17,7 @@ import org.junit.Test; ...@@ -16,6 +17,7 @@ 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;
...@@ -100,7 +102,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -100,7 +102,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testReject() throws Throwable { @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
testReject() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testReject", mRule.getDismissed()); mRule.clickNodeAndWait("testReject", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -128,7 +134,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -128,7 +134,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testThrow() throws Throwable { @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
testThrow() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testThrow", mRule.getDismissed()); mRule.clickNodeAndWait("testThrow", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -141,7 +151,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -141,7 +151,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testThrowBasicCard() throws Throwable { @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
testThrowBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testThrow", mRule.getReadyToPay()); mRule.triggerUIAndWait("testThrow", mRule.getReadyToPay());
...@@ -156,7 +170,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -156,7 +170,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testDetails() throws Throwable { @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
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
...@@ -179,7 +197,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest { ...@@ -179,7 +197,11 @@ public class ExpandablePaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testDetailsBasicCard() throws Throwable { @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
testDetailsBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay()); mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay());
......
...@@ -15,6 +15,7 @@ import static androidx.test.espresso.matcher.ViewMatchers.withId; ...@@ -15,6 +15,7 @@ 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;
...@@ -369,6 +370,9 @@ public class ExpandablePaymentHandlerTest { ...@@ -369,6 +370,9 @@ 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();
...@@ -419,7 +423,11 @@ public class ExpandablePaymentHandlerTest { ...@@ -419,7 +423,11 @@ public class ExpandablePaymentHandlerTest {
@SmallTest @SmallTest
@Feature({"Payments"}) @Feature({"Payments"})
@ParameterAnnotations.UseMethodParameter(GoodCertParams.class) @ParameterAnnotations.UseMethodParameter(GoodCertParams.class)
public void testSecureConnectionShowUi(int goodCertificate) throws Throwable { @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
testSecureConnectionShowUi(int goodCertificate) throws Throwable {
startServer(goodCertificate); startServer(goodCertificate);
PaymentHandlerCoordinator paymentHandler = createPaymentHandlerAndShow(mDefaultIsIncognito); PaymentHandlerCoordinator paymentHandler = createPaymentHandlerAndShow(mDefaultIsIncognito);
waitForTitleShown(paymentHandler.getWebContentsForTest()); waitForTitleShown(paymentHandler.getWebContentsForTest());
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
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;
...@@ -16,6 +17,7 @@ import org.junit.Test; ...@@ -16,6 +17,7 @@ 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;
...@@ -72,7 +74,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -72,7 +74,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testNoEventHandler() throws Throwable { @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
testNoEventHandler() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testNoHandler", mRule.getDismissed()); mRule.clickNodeAndWait("testNoHandler", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -85,7 +91,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -85,7 +91,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testNoEventHandlerBasicCard() throws Throwable { @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
testNoEventHandlerBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testNoHandler", mRule.getReadyToPay()); mRule.triggerUIAndWait("testNoHandler", mRule.getReadyToPay());
...@@ -100,7 +110,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -100,7 +110,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testReject() throws Throwable { @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
testReject() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testReject", mRule.getDismissed()); mRule.clickNodeAndWait("testReject", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -113,7 +127,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -113,7 +127,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testRejectBasicCard() throws Throwable { @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
testRejectBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testReject", mRule.getReadyToPay()); mRule.triggerUIAndWait("testReject", mRule.getReadyToPay());
...@@ -128,7 +146,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -128,7 +146,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testThrow() throws Throwable { @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
testThrow() throws Throwable {
installPaymentHandler(); installPaymentHandler();
mRule.clickNodeAndWait("testThrow", mRule.getDismissed()); mRule.clickNodeAndWait("testThrow", mRule.getDismissed());
mRule.expectResultContains( mRule.expectResultContains(
...@@ -156,7 +178,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -156,7 +178,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testDetails() throws Throwable { @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
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
...@@ -179,7 +205,11 @@ public class PaymentHandlerChangePaymentMethodTest { ...@@ -179,7 +205,11 @@ public class PaymentHandlerChangePaymentMethodTest {
*/ */
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
public void testDetailsBasicCard() throws Throwable { @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
testDetailsBasicCard() throws Throwable {
mRule.clickNode("basicCardMethodName"); mRule.clickNode("basicCardMethodName");
installPaymentHandler(); installPaymentHandler();
mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay()); mRule.triggerUIAndWait("testDetails", mRule.getReadyToPay());
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
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;
...@@ -19,6 +20,7 @@ import org.junit.runner.RunWith; ...@@ -19,6 +20,7 @@ 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;
...@@ -86,7 +88,11 @@ public class PaymentHandlerEnableDelegationsTest { ...@@ -86,7 +88,11 @@ public class PaymentHandlerEnableDelegationsTest {
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@MediumTest @MediumTest
public void testShippingDelegation() throws Throwable { @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
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.
...@@ -114,7 +120,11 @@ public class PaymentHandlerEnableDelegationsTest { ...@@ -114,7 +120,11 @@ public class PaymentHandlerEnableDelegationsTest {
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@MediumTest @MediumTest
public void testShippingAndContactInfoDelegation() throws Throwable { @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
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
...@@ -145,7 +155,11 @@ public class PaymentHandlerEnableDelegationsTest { ...@@ -145,7 +155,11 @@ public class PaymentHandlerEnableDelegationsTest {
@Test @Test
@Feature({"Payments"}) @Feature({"Payments"})
@MediumTest @MediumTest
public void testPartialDelegationContactInfoNotSupported() throws Throwable { @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
testPartialDelegationContactInfoNotSupported() throws Throwable {
installPaymentHandlerWithDelegations("['shippingAddress']"); installPaymentHandlerWithDelegations("['shippingAddress']");
createPaymentRequestAndWaitFor( createPaymentRequestAndWaitFor(
"{requestShipping: true, requestPayerName: true, requestPayerEmail: true}", "{requestShipping: true, requestPayerName: true, requestPayerEmail: true}",
......
...@@ -8,6 +8,8 @@ import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.DECEMB ...@@ -8,6 +8,8 @@ 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;
...@@ -17,6 +19,7 @@ import org.junit.Test; ...@@ -17,6 +19,7 @@ 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;
...@@ -111,7 +114,11 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt ...@@ -111,7 +114,11 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt
@Test @Test
@MediumTest @MediumTest
@Feature({"Payments"}) @Feature({"Payments"})
public void testPayWithBasicCard() throws TimeoutException { @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
testPayWithBasicCard() throws TimeoutException {
mPaymentRequestTestRule.openPageAndClickNodeAndWait( mPaymentRequestTestRule.openPageAndClickNodeAndWait(
"checkBasicVisa", mPaymentRequestTestRule.getCanMakePaymentQueryResponded()); "checkBasicVisa", mPaymentRequestTestRule.getCanMakePaymentQueryResponded());
mPaymentRequestTestRule.expectResultContains(new String[] {"true"}); mPaymentRequestTestRule.expectResultContains(new String[] {"true"});
...@@ -135,7 +142,11 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt ...@@ -135,7 +142,11 @@ public class PaymentRequestPaymentMethodIdentifierTest implements MainActivitySt
@Test @Test
@MediumTest @MediumTest
@Feature({"Payments"}) @Feature({"Payments"})
public void testAddMasterCard() throws TimeoutException { @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
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,6 +8,8 @@ import static org.chromium.chrome.browser.payments.PaymentRequestTestRule.DECEMB ...@@ -8,6 +8,8 @@ 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;
...@@ -16,6 +18,7 @@ import org.junit.Test; ...@@ -16,6 +18,7 @@ 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;
...@@ -65,7 +68,11 @@ public class PaymentRequestRemoveBillingAddressTest implements MainActivityStart ...@@ -65,7 +68,11 @@ public class PaymentRequestRemoveBillingAddressTest implements MainActivityStart
@Test @Test
@MediumTest @MediumTest
@Feature({"Payments"}) @Feature({"Payments"})
public void testPayWithCard() throws TimeoutException { @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
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