From c190ce1f6393bb2e5034cc0199820f410bdeb8cb Mon Sep 17 00:00:00 2001 From: Gleb Khmyznikov Date: Sun, 7 Dec 2025 19:32:49 -0800 Subject: [PATCH] desperate --- .../FancyZones.UITests/DragWindowTests.cs | 39 ++++--------------- 1 file changed, 7 insertions(+), 32 deletions(-) diff --git a/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs b/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs index 8aeb47ad4c..a1099325c9 100644 --- a/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs +++ b/src/modules/fancyzones/FancyZones.UITests/DragWindowTests.cs @@ -50,27 +50,17 @@ namespace UITests_FancyZones [TestInitialize] public void TestInitialize() { - // SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts"); + Session.KillAllProcessesByName("PowerToys"); + ClearOpenWindows(); + AppZoneHistory.DeleteFile(); FancyZonesEditorHelper.Files.Restore(); - - if (TestContext.TestName == "TestWarmup") - { - return; - } - - // Session.KillAllProcessesByName("PowerToys"); - // Thread.Sleep(1000); - // ClearOpenWindows(); - - // SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts"); - - // RestartScopeExe(); - // Thread.Sleep(2000); - - // Set a custom layout with 1 subzones and clear app zone history + SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts"); SetupCustomLayouts(); + RestartScopeExe(); + Thread.Sleep(2000); + // Get the current mouse button setting nonPrimaryMouseButton = SystemInformation.MouseButtonsSwapped ? "Left" : "Right"; @@ -81,21 +71,6 @@ 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. ///