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

🤠 Disable flaky callers of waitForKeyboardAccessoryToBeShown on Marshmallow.

Disabled tests:
org.chromium.chrome.browser.keyboard_accessory...
...AutofillKeyboardAccessoryIntegrationTest
   #testSelectSuggestionHidesKeyboardAccessory__default
...ManualFillingIntegrationTest
   #testAccessoryHiddenAfterTappingAutoGenerationButton
   #testAccessorySheetHiddenWhenRefocusingField
   #testInfobarReopensOnPressingBack
   #testInfobarStaysHiddenWhenOpeningSheet
   #testKeyboardAccessoryDisappearsWithKeyboard
   #testKeyboardAccessoryHiddenUntilKeyboardShows
   #testMovesUpSnackbar
   #testPressingBackButtonHidesAccessorySheet
   #testSelectingNonPasswordInputDismissesAccessory
...ManualFillingUiCaptureTest
   #testCaptureKeyboardAccessoryV2WithPasswordsRTL
   #testCaptureKeyboardAccessoryWithPasswords
   #testCaptureKeyboardAccessoryWithPasswordsRTL
...sheet_tabs.PasswordAccessoryIntegrationTest
   #testPasswordSheetDisplaysProvidedItems

TBR=fhorschig@chromium.org

Bug: 1102302
Change-Id: I537c30a59dd01e9de9e0abb93e1e367cc58dfdbe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282802Reviewed-by: default avatarArthur Sonzogni <arthursonzogni@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785329}
parent 850aa873
...@@ -18,6 +18,7 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe ...@@ -18,6 +18,7 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe
import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout; import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout;
import android.app.Activity; import android.app.Activity;
import android.os.Build.VERSION_CODES;
import android.view.View; import android.view.View;
import androidx.annotation.IntDef; import androidx.annotation.IntDef;
...@@ -35,6 +36,7 @@ import org.chromium.base.test.params.ParameterSet; ...@@ -35,6 +36,7 @@ import org.chromium.base.test.params.ParameterSet;
import org.chromium.base.test.params.ParameterizedRunner; import org.chromium.base.test.params.ParameterizedRunner;
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.FlakyTest; import org.chromium.base.test.util.FlakyTest;
import org.chromium.chrome.browser.ChromeWindow; import org.chromium.chrome.browser.ChromeWindow;
import org.chromium.chrome.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.flags.ChromeFeatureList;
...@@ -199,7 +201,11 @@ public class AutofillKeyboardAccessoryIntegrationTest { ...@@ -199,7 +201,11 @@ public class AutofillKeyboardAccessoryIntegrationTest {
@Test @Test
@MediumTest @MediumTest
@ParameterAnnotations.UseMethodParameter(FeatureParamProvider.class) @ParameterAnnotations.UseMethodParameter(FeatureParamProvider.class)
public void testSelectSuggestionHidesKeyboardAccessory(@EnabledFeature int enabledFeature) @DisableIf.
Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102302")
public void
testSelectSuggestionHidesKeyboardAccessory(@EnabledFeature int enabledFeature)
throws ExecutionException, TimeoutException { throws ExecutionException, TimeoutException {
loadTestPage(FakeKeyboard::new, enabledFeature); loadTestPage(FakeKeyboard::new, enabledFeature);
mHelper.clickNodeAndShowKeyboard("NAME_FIRST"); mHelper.clickNodeAndShowKeyboard("NAME_FIRST");
......
...@@ -25,6 +25,7 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe ...@@ -25,6 +25,7 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe
import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper.whenDisplayed; import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper.whenDisplayed;
import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout; import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout;
import android.os.Build.VERSION_CODES;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
...@@ -38,6 +39,7 @@ import org.junit.runner.RunWith; ...@@ -38,6 +39,7 @@ import org.junit.runner.RunWith;
import org.chromium.base.task.PostTask; import org.chromium.base.task.PostTask;
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.Restriction; import org.chromium.base.test.util.Restriction;
import org.chromium.chrome.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.flags.ChromeFeatureList;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
...@@ -102,7 +104,11 @@ public class ManualFillingIntegrationTest { ...@@ -102,7 +104,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testKeyboardAccessoryDisappearsWithKeyboard() 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/1102302")
public void
testKeyboardAccessoryDisappearsWithKeyboard() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
// Focus the field to bring up the accessory. // Focus the field to bring up the accessory.
...@@ -137,7 +143,11 @@ public class ManualFillingIntegrationTest { ...@@ -137,7 +143,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testAccessorySheetHiddenWhenRefocusingField() 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/1102302")
public void
testAccessorySheetHiddenWhenRefocusingField() throws TimeoutException {
AtomicReference<ViewGroup.MarginLayoutParams> accessoryMargins = new AtomicReference<>(); AtomicReference<ViewGroup.MarginLayoutParams> accessoryMargins = new AtomicReference<>();
AtomicReference<View> accessorySheetView = new AtomicReference<>(); AtomicReference<View> accessorySheetView = new AtomicReference<>();
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
...@@ -174,7 +184,11 @@ public class ManualFillingIntegrationTest { ...@@ -174,7 +184,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
@Features.DisableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY) @Features.DisableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY)
public void testAccessoryHiddenAfterTappingAutoGenerationButton() 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/1102302")
public void
testAccessoryHiddenAfterTappingAutoGenerationButton() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
// Focus the field to bring up the accessory and add the generation button. // Focus the field to bring up the accessory and add the generation button.
...@@ -220,7 +234,11 @@ public class ManualFillingIntegrationTest { ...@@ -220,7 +234,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
@Features.DisableFeatures({ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY}) @Features.DisableFeatures({ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY})
public void testSelectingNonPasswordInputDismissesAccessory() 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/1102302")
public void
testSelectingNonPasswordInputDismissesAccessory() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
// Focus the password field to bring up the accessory. // Focus the password field to bring up the accessory.
...@@ -298,7 +316,11 @@ public class ManualFillingIntegrationTest { ...@@ -298,7 +316,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testPressingBackButtonHidesAccessorySheet() 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/1102302")
public void
testPressingBackButtonHidesAccessorySheet() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
// Focus the field to bring up the accessory. // Focus the field to bring up the accessory.
...@@ -360,7 +382,11 @@ public class ManualFillingIntegrationTest { ...@@ -360,7 +382,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testInfobarStaysHiddenWhenOpeningSheet() 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/1102302")
public void
testInfobarStaysHiddenWhenOpeningSheet() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
// Initialize and wait for the infobar. // Initialize and wait for the infobar.
...@@ -405,7 +431,11 @@ public class ManualFillingIntegrationTest { ...@@ -405,7 +431,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testMovesUpSnackbar() 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/1102302")
public void
testMovesUpSnackbar() throws TimeoutException {
final String kSnackbarText = "snackbar"; final String kSnackbarText = "snackbar";
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
...@@ -441,7 +471,11 @@ public class ManualFillingIntegrationTest { ...@@ -441,7 +471,11 @@ public class ManualFillingIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testInfobarReopensOnPressingBack() 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/1102302")
public void
testInfobarReopensOnPressingBack() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
// Initialize and wait for the infobar. // Initialize and wait for the infobar.
......
...@@ -15,6 +15,8 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe ...@@ -15,6 +15,8 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe
import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper.whenDisplayed; import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper.whenDisplayed;
import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout; import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout;
import android.os.Build.VERSION_CODES;
import androidx.recyclerview.widget.RecyclerView; import androidx.recyclerview.widget.RecyclerView;
import androidx.test.filters.MediumTest; import androidx.test.filters.MediumTest;
...@@ -24,6 +26,7 @@ import org.junit.Test; ...@@ -24,6 +26,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.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.flags.ChromeFeatureList;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
...@@ -63,8 +66,11 @@ public class ManualFillingUiCaptureTest { ...@@ -63,8 +66,11 @@ public class ManualFillingUiCaptureTest {
@MediumTest @MediumTest
@DisableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY) @DisableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY)
@Feature({"KeyboardAccessory", "LTR", "UiCatalogue"}) @Feature({"KeyboardAccessory", "LTR", "UiCatalogue"})
public void testCaptureKeyboardAccessoryWithPasswords() @DisableIf.
throws InterruptedException, TimeoutException { Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102302")
public void
testCaptureKeyboardAccessoryWithPasswords() throws InterruptedException, TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
mHelper.cacheTestCredentials(); mHelper.cacheTestCredentials();
mHelper.addGenerationButton(); mHelper.addGenerationButton();
...@@ -90,8 +96,11 @@ public class ManualFillingUiCaptureTest { ...@@ -90,8 +96,11 @@ public class ManualFillingUiCaptureTest {
@MediumTest @MediumTest
@DisableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY) @DisableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY)
@Feature({"KeyboardAccessory", "RTL", "UiCatalogue"}) @Feature({"KeyboardAccessory", "RTL", "UiCatalogue"})
public void testCaptureKeyboardAccessoryWithPasswordsRTL() @DisableIf.
throws InterruptedException, TimeoutException { Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102302")
public void
testCaptureKeyboardAccessoryWithPasswordsRTL() throws InterruptedException, TimeoutException {
mHelper.loadTestPage(true); mHelper.loadTestPage(true);
mHelper.cacheTestCredentials(); mHelper.cacheTestCredentials();
mHelper.focusPasswordField(); mHelper.focusPasswordField();
...@@ -116,8 +125,11 @@ public class ManualFillingUiCaptureTest { ...@@ -116,8 +125,11 @@ public class ManualFillingUiCaptureTest {
@MediumTest @MediumTest
@EnableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY) @EnableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY)
@Feature({"KeyboardAccessoryModern", "LTR", "UiCatalogue"}) @Feature({"KeyboardAccessoryModern", "LTR", "UiCatalogue"})
public void testCaptureKeyboardAccessoryV2WithPasswords() @DisableIf.
throws InterruptedException, TimeoutException { Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102302")
public void
testCaptureKeyboardAccessoryV2WithPasswords() throws InterruptedException, TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
ManualFillingTestHelper.createAutofillTestProfiles(); ManualFillingTestHelper.createAutofillTestProfiles();
mHelper.cacheTestCredentials(); mHelper.cacheTestCredentials();
...@@ -146,8 +158,11 @@ public class ManualFillingUiCaptureTest { ...@@ -146,8 +158,11 @@ public class ManualFillingUiCaptureTest {
@MediumTest @MediumTest
@EnableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY) @EnableFeatures(ChromeFeatureList.AUTOFILL_KEYBOARD_ACCESSORY)
@Feature({"KeyboardAccessoryModern", "RTL", "UiCatalogue"}) @Feature({"KeyboardAccessoryModern", "RTL", "UiCatalogue"})
public void testCaptureKeyboardAccessoryV2WithPasswordsRTL() @DisableIf.
throws InterruptedException, TimeoutException { Build(sdk_is_greater_than = VERSION_CODES.LOLLIPOP_MR1, sdk_is_less_than = VERSION_CODES.N,
message = "Flaky on Marshmallow https://crbug.com/1102302")
public void
testCaptureKeyboardAccessoryV2WithPasswordsRTL() throws InterruptedException, TimeoutException {
mHelper.loadTestPage(true); mHelper.loadTestPage(true);
ManualFillingTestHelper.createAutofillTestProfiles(); ManualFillingTestHelper.createAutofillTestProfiles();
mHelper.cacheTestCredentials(); mHelper.cacheTestCredentials();
......
...@@ -21,6 +21,8 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe ...@@ -21,6 +21,8 @@ import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHe
import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper.whenDisplayed; import static org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper.whenDisplayed;
import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout; import static org.chromium.chrome.browser.keyboard_accessory.tab_layout_component.KeyboardAccessoryTabTestHelper.isKeyboardAccessoryTabLayout;
import android.os.Build.VERSION_CODES;
import androidx.test.filters.SmallTest; import androidx.test.filters.SmallTest;
import org.junit.After; import org.junit.After;
...@@ -29,6 +31,7 @@ import org.junit.Test; ...@@ -29,6 +31,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.chrome.browser.flags.ChromeFeatureList; import org.chromium.chrome.browser.flags.ChromeFeatureList;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
import org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper; import org.chromium.chrome.browser.keyboard_accessory.ManualFillingTestHelper;
...@@ -69,7 +72,11 @@ public class PasswordAccessoryIntegrationTest { ...@@ -69,7 +72,11 @@ public class PasswordAccessoryIntegrationTest {
@Test @Test
@SmallTest @SmallTest
public void testPasswordSheetDisplaysProvidedItems() 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/1102302")
public void
testPasswordSheetDisplaysProvidedItems() throws TimeoutException {
mHelper.loadTestPage(false); mHelper.loadTestPage(false);
mHelper.cacheCredentials("mayapark@gmail.com", "SomeHiddenPassword"); mHelper.cacheCredentials("mayapark@gmail.com", "SomeHiddenPassword");
......
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