diff --git a/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs b/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs index bf19c051d2..b1e97741fc 100644 --- a/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs +++ b/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs @@ -50,13 +50,22 @@ namespace UITests_FancyZones [TestInitialize] public void TestInitialize() { + AppZoneHistory.DeleteFile(); + FancyZonesEditorHelper.Files.Restore(); + + if (TestContext.TestName == "TestWarmup") + { + Thread.Sleep(5000); + Session.KillAllProcessesByName("PowerToys"); + Thread.Sleep(5000); + return; + } + // Session.KillAllProcessesByName("PowerToys"); // Thread.Sleep(1000); // ClearOpenWindows(); // SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts"); - AppZoneHistory.DeleteFile(); - FancyZonesEditorHelper.Files.Restore(); // RestartScopeExe(); // Thread.Sleep(2000); @@ -74,6 +83,21 @@ namespace UITests_FancyZones LaunchFancyZones(); } + /// + /// Empty Test for Warmup. + /// + /// + /// Warmup the environment to avoid first real test failing + /// + /// + /// + [TestMethod("FancyZones.Settings.TestWarmup")] + [TestCategory("FancyZones_Dragging #0")] + public void TestWarmup() + { + Assert.AreEqual(true, true); + } + /// /// Test toggling zones using a non-primary mouse click during window dragging. ///