mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
desperate
This commit is contained in:
@@ -50,27 +50,17 @@ namespace UITests_FancyZones
|
|||||||
[TestInitialize]
|
[TestInitialize]
|
||||||
public void TestInitialize()
|
public void TestInitialize()
|
||||||
{
|
{
|
||||||
// SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts");
|
Session.KillAllProcessesByName("PowerToys");
|
||||||
|
ClearOpenWindows();
|
||||||
|
|
||||||
AppZoneHistory.DeleteFile();
|
AppZoneHistory.DeleteFile();
|
||||||
FancyZonesEditorHelper.Files.Restore();
|
FancyZonesEditorHelper.Files.Restore();
|
||||||
|
SettingsConfigHelper.ConfigureGlobalModuleSettings("Hosts");
|
||||||
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
|
|
||||||
SetupCustomLayouts();
|
SetupCustomLayouts();
|
||||||
|
|
||||||
|
RestartScopeExe();
|
||||||
|
Thread.Sleep(2000);
|
||||||
|
|
||||||
// Get the current mouse button setting
|
// Get the current mouse button setting
|
||||||
nonPrimaryMouseButton = SystemInformation.MouseButtonsSwapped ? "Left" : "Right";
|
nonPrimaryMouseButton = SystemInformation.MouseButtonsSwapped ? "Left" : "Right";
|
||||||
|
|
||||||
@@ -81,21 +71,6 @@ namespace UITests_FancyZones
|
|||||||
LaunchFancyZones();
|
LaunchFancyZones();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Empty Test for Warmup.
|
|
||||||
/// <list type="bullet">
|
|
||||||
/// <item>
|
|
||||||
/// <description>Warmup the environment to avoid first real test failing</description>
|
|
||||||
/// </item>
|
|
||||||
/// </list>
|
|
||||||
/// </summary>
|
|
||||||
[TestMethod("FancyZones.Settings.TestWarmup")]
|
|
||||||
[TestCategory("FancyZones_Dragging #0")]
|
|
||||||
public void TestWarmup()
|
|
||||||
{
|
|
||||||
Assert.AreEqual(true, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Test toggling zones using a non-primary mouse click during window dragging.
|
/// Test toggling zones using a non-primary mouse click during window dragging.
|
||||||
/// <list type="bullet">
|
/// <list type="bullet">
|
||||||
|
|||||||
Reference in New Issue
Block a user