Commit 66e21ab3 authored by Sebastien Lalancette's avatar Sebastien Lalancette Committed by Chromium LUCI CQ

[iOS] Disable Flaky Smoke Test

SmokeTestCase/testAppLaunchManagerBackgroundAndForegroundApp is flaky on
simulators.

crbug.com/1164446

Bug: 1164446
Change-Id: I4b6db5a9d497a0341a43ebc6b14551e6d7f076ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617581
Commit-Queue: Sebastien Lalancette <seblalancette@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Auto-Submit: Sebastien Lalancette <seblalancette@chromium.org>
Cr-Commit-Position: refs/heads/master@{#842063}
parent 033488b1
......@@ -5,6 +5,7 @@
#import <TestLib/EarlGreyImpl/EarlGrey.h>
#import <UIKit/UIKit.h>
#import "base/ios/ios_util.h"
#include "ios/chrome/browser/pref_names.h"
#import "ios/chrome/browser/ui/settings/password/passwords_table_view_constants.h"
#import "ios/chrome/browser/ui/ui_feature_flags.h"
......@@ -291,7 +292,19 @@
}
// Tests backgrounding app and moving app back through AppLaunchManager.
- (void)testAppLaunchManagerBackgroundAndForegroundApp {
// TODO:(crbug.com/1164446): Re-enable this test on simulators.
#if TARGET_OS_SIMULATOR
#define MAYBE_testAppLaunchManagerBackgroundAndForegroundApp \
FLAKY_testAppLaunchManagerBackgroundAndForegroundApp
#else
#define MAYBE_testAppLaunchManagerBackgroundAndForegroundApp \
testAppLaunchManagerBackgroundAndForegroundApp
#endif
- (void)FLAKY_testAppLaunchManagerBackgroundAndForegroundApp {
if (!base::ios::IsRunningOnOrLater(13, 0, 0)) {
EARL_GREY_TEST_DISABLED(@"Test disabled on iOS 12 and lower.");
}
[ChromeEarlGrey openNewTab];
[[AppLaunchManager sharedManager] backgroundAndForegroundApp];
[ChromeEarlGrey waitForMainTabCount:2];
......
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