From 855e5efb533fd5dac899a6eeea8c48fd644bdd72 Mon Sep 17 00:00:00 2001 From: "Zhaopeng Wang (from Dev Box)" Date: Thu, 22 May 2025 18:56:29 +0800 Subject: [PATCH] fix pipeline run low time --- src/common/UITestAutomation/Session.cs | 1 + .../fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/common/UITestAutomation/Session.cs b/src/common/UITestAutomation/Session.cs index 2ae47ad7a0..497394a5a7 100644 --- a/src/common/UITestAutomation/Session.cs +++ b/src/common/UITestAutomation/Session.cs @@ -526,6 +526,7 @@ namespace Microsoft.PowerToys.UITest Assert.IsNotNull(this.Root, $"Failed to attach to the window '{windowName}'. Root driver is null"); } + Thread.Sleep(3); return this; } diff --git a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs index dca6ff9404..1c8786aa02 100644 --- a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs +++ b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs @@ -337,6 +337,7 @@ namespace UITests_FancyZones Session.KillAllProcessesByName("explorer"); Session.StartExe("explorer.exe", "C:\\"); + Thread.Sleep(3); Session.Attach(WindowName, WindowSize.UnSpecified); var tabView = Find(By.AccessibilityId("TabView")); tabView.DoubleClick(); // maximize the window