From 9d91d48ebca9dac0c043f215aab39ac5b289cf23 Mon Sep 17 00:00:00 2001 From: "Zhaopeng Wang (from Dev Box)" Date: Mon, 19 May 2025 16:18:09 +0800 Subject: [PATCH] fix pipeline error --- .../LayoutApplyHotKeyTests.cs | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs index 9690021489..828d5e3190 100644 --- a/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs +++ b/src/modules/fancyzones/UITests-FancyZones/LayoutApplyHotKeyTests.cs @@ -283,9 +283,23 @@ namespace Microsoft.FancyZones.UITests this.OpenFancyZonesPanel(); this.ControlQuickLayoutSwitch(true); - SendKeys(Key.Win, Key.Ctrl, Key.Alt, Key.Num0); + // Set Hotkey this.AttachFancyZonesEditor(); - var element = this.Find("Grid custom layout"); + var layout = "Grid custom layout"; + Session.Find(layout).Find