Commit 145f53e0 authored by Anatoliy Potapchuk's avatar Anatoliy Potapchuk Committed by Commit Bot

[Kiosk] Fix flaky KioskTest.LaunchAppUserCancel

This test was flaky because sometimes it was going to the network
confingure screen(because there was no network), now we are always
online.

Bug: 964333
Change-Id: I397a873e7a0393a5646993475b934f226661e9c8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2352889Reviewed-by: default avatarDenis Kuznetsov [CET] <antrim@chromium.org>
Commit-Queue: Anatoliy Potapchuk <apotapchuk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797658}
parent 1e94e550
...@@ -1035,13 +1035,12 @@ IN_PROC_BROWSER_TEST_F(KioskTest, LaunchAppNetworkPortal) { ...@@ -1035,13 +1035,12 @@ IN_PROC_BROWSER_TEST_F(KioskTest, LaunchAppNetworkPortal) {
WaitForAppLaunchSuccess(); WaitForAppLaunchSuccess();
} }
// TODO(https://crbug.com/964333): Flakily seg faults. IN_PROC_BROWSER_TEST_F(KioskTest, LaunchAppUserCancel) {
IN_PROC_BROWSER_TEST_F(KioskTest, DISABLED_LaunchAppUserCancel) {
// Make fake_cws_ return empty update response.
set_test_app_version("");
OobeScreenWaiter splash_waiter(AppLaunchSplashScreenView::kScreenId);
StartAppLaunchFromLoginScreen( StartAppLaunchFromLoginScreen(
NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_OFFLINE); NetworkPortalDetector::CAPTIVE_PORTAL_STATUS_ONLINE);
OobeScreenWaiter splash_waiter(AppLaunchSplashScreenView::kScreenId);
// Do not let the app be run to avoid race condition.
BlockAppLaunch(true);
splash_waiter.Wait(); splash_waiter.Wait();
settings_helper_.SetBoolean( settings_helper_.SetBoolean(
......
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