mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-23 19:49:43 +01:00
fix pipeline error
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Automation;
|
||||
using FancyZonesEditor.Models;
|
||||
using FancyZonesEditorCommon.Data;
|
||||
using Microsoft.FancyZonesEditor.UITests;
|
||||
@@ -540,7 +541,14 @@ namespace Microsoft.FancyZones.UITests
|
||||
UITestBase.NativeMethods.ChangeDispalyResolution(width, height);
|
||||
this.AttachPowertoySetting();
|
||||
this.AttachFancyZonesEditor();
|
||||
Session.Find<Element>(By.AccessibilityId("Monitors")).Find<Element>("Monitor 1").Find<Element>($"{width} x {height}");
|
||||
var resolution = this.Session.Find<Element>(By.AccessibilityId("Monitors")).Find<Element>("Monitor 1").Find<Element>(By.AccessibilityId("ResolutionText"));
|
||||
if (resolution.Text != "640 × 480")
|
||||
{
|
||||
this.CloseFancyZonesEditor();
|
||||
UITestBase.NativeMethods.ChangeDispalyResolution(nowWidth, nowHeight);
|
||||
Assert.AreEqual("640 × 480", resolution.Text);
|
||||
}
|
||||
|
||||
this.CloseFancyZonesEditor();
|
||||
UITestBase.NativeMethods.ChangeDispalyResolution(nowWidth, nowHeight);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user