Try to not restart the PT

This commit is contained in:
Gleb Khmyznikov
2025-12-05 21:53:10 -08:00
parent df34cd4238
commit 9bbe91f355

View File

@@ -50,16 +50,16 @@ namespace UITests_FancyZones
[TestInitialize] [TestInitialize]
public void TestInitialize() public void TestInitialize()
{ {
Session.KillAllProcessesByName("PowerToys"); // Session.KillAllProcessesByName("PowerToys");
Thread.Sleep(1000); // Thread.Sleep(1000);
ClearOpenWindows(); // ClearOpenWindows();
// SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts"); // SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts");
AppZoneHistory.DeleteFile(); AppZoneHistory.DeleteFile();
FancyZonesEditorHelper.Files.Restore(); FancyZonesEditorHelper.Files.Restore();
RestartScopeExe(); // RestartScopeExe();
Thread.Sleep(2000); // Thread.Sleep(2000);
// Set a custom layout with 1 subzones and clear app zone history // Set a custom layout with 1 subzones and clear app zone history
SetupCustomLayouts(); SetupCustomLayouts();
@@ -86,8 +86,6 @@ namespace UITests_FancyZones
[TestCategory("FancyZones_Dragging #3")] [TestCategory("FancyZones_Dragging #3")]
public void TestToggleZonesWithNonPrimaryMouseClick() public void TestToggleZonesWithNonPrimaryMouseClick()
{ {
TestInitialize();
string testCaseName = nameof(TestToggleZonesWithNonPrimaryMouseClick); string testCaseName = nameof(TestToggleZonesWithNonPrimaryMouseClick);
var windowRect = Session.GetMainWindowRect(); var windowRect = Session.GetMainWindowRect();