From ff8a5163ef60f1eea1d29d551dc85ebb8c76cfa5 Mon Sep 17 00:00:00 2001 From: "Zhaopeng Wang (from Dev Box)" Date: Tue, 29 Apr 2025 05:15:43 +0800 Subject: [PATCH] fix Spelling error --- src/common/UITestAutomation/UITestBase.cs | 4 ++-- .../fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/common/UITestAutomation/UITestBase.cs b/src/common/UITestAutomation/UITestBase.cs index a042f02faf..71aea37244 100644 --- a/src/common/UITestAutomation/UITestBase.cs +++ b/src/common/UITestAutomation/UITestBase.cs @@ -45,7 +45,7 @@ namespace Microsoft.PowerToys.UITest Console.WriteLine($"Running tests on platform: {Environment.GetEnvironmentVariable("platform")}"); if (isInPipeline) { - NativeMethods.ChangeDispalyResolution(1920, 1080); + NativeMethods.ChangeDisplayResolution(1920, 1080); NativeMethods.GetMonitorInfo(); // Escape Popups before starting @@ -534,7 +534,7 @@ namespace Microsoft.PowerToys.UITest } } - public static void ChangeDispalyResolution(int PelsWidth, int PelsHeight) + public static void ChangeDisplayResolution(int PelsWidth, int PelsHeight) { Screen screen = Screen.PrimaryScreen!; if (screen.Bounds.Width == PelsWidth && screen.Bounds.Height == PelsHeight) diff --git a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs index c47e9e2a91..8fee622e1f 100644 --- a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs +++ b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs @@ -528,19 +528,19 @@ namespace Microsoft.FancyZones.UITests int nowWidth = UITestBase.MonitorInfoData.Monitors[UITestBase.MonitorInfoData.Monitors.Count - 1].PelsWidth; int height = UITestBase.MonitorInfoData.Monitors[0].PelsHeight; int width = UITestBase.MonitorInfoData.Monitors[0].PelsWidth; - UITestBase.NativeMethods.ChangeDispalyResolution(width, height); + UITestBase.NativeMethods.ChangeDisplayResolution(width, height); this.AttachPowertoySetting(); this.AttachFancyZonesEditor(); var resolution = this.Session.Find(By.AccessibilityId("Monitors")).Find("Monitor 1").Find(By.AccessibilityId("ResolutionText")); if (resolution.Text != "640 × 480") { this.CloseFancyZonesEditor(); - UITestBase.NativeMethods.ChangeDispalyResolution(nowWidth, nowHeight); + UITestBase.NativeMethods.ChangeDisplayResolution(nowWidth, nowHeight); Assert.AreEqual("640 × 480", resolution.Text); } this.CloseFancyZonesEditor(); - UITestBase.NativeMethods.ChangeDispalyResolution(nowWidth, nowHeight); + UITestBase.NativeMethods.ChangeDisplayResolution(nowWidth, nowHeight); } private void OpenFancyZonesPanel(bool launchAsAdmin = false)