From f2e93cf440b7412b6eb32161290662e72cd757ec Mon Sep 17 00:00:00 2001 From: "Zhaopeng Wang (from Dev Box)" Date: Mon, 28 Apr 2025 13:31:54 +0800 Subject: [PATCH] fix pipeline error and only run fancyzone uitest --- .pipelines/v2/templates/job-test-project.yml | 2 +- .../UITests-FancyZones/LayoutApplyHotKeyTests.cs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.pipelines/v2/templates/job-test-project.yml b/.pipelines/v2/templates/job-test-project.yml index 81efc062dc..4695684b89 100644 --- a/.pipelines/v2/templates/job-test-project.yml +++ b/.pipelines/v2/templates/job-test-project.yml @@ -107,7 +107,7 @@ jobs: rerunFailedTests: true ${{ if eq(parameters.isUIAutomationPipeline, true) }}: testAssemblyVer2: | - **\*UITest*.dll + **\UITests-FancyZones.dll !**\obj\** !**\ref\** ${{ else }}: diff --git a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs index 2a97690b43..8648e3a389 100644 --- a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs +++ b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs @@ -555,6 +555,13 @@ namespace Microsoft.FancyZones.UITests private void OpenFancyZonesPanel(bool launchAsAdmin = false) { + if (this.Session.IsWindowOpen("FancyZones Layout")) + { + AttachFancyZonesEditor(); + CloseFancyZonesEditor(); + AttachPowertoySetting(); + } + var windowingElement = this.Find("Windowing & Layouts"); // Goto FancyZones Editor setting page