diff --git a/samples/IntegrationTestApp/ShowWindowTest.axaml b/samples/IntegrationTestApp/ShowWindowTest.axaml
index 00987429d0..5162eeee92 100644
--- a/samples/IntegrationTestApp/ShowWindowTest.axaml
+++ b/samples/IntegrationTestApp/ShowWindowTest.axaml
@@ -6,27 +6,27 @@
Title="Show Window Test">
-
-
-
+
-
+
-
+
-
+
-
+
Normal
Minimized
Maximized
@@ -34,7 +34,7 @@
-
+
diff --git a/samples/IntegrationTestApp/ShowWindowTest.axaml.cs b/samples/IntegrationTestApp/ShowWindowTest.axaml.cs
index 43875dd990..1a267ea20b 100644
--- a/samples/IntegrationTestApp/ShowWindowTest.axaml.cs
+++ b/samples/IntegrationTestApp/ShowWindowTest.axaml.cs
@@ -16,11 +16,11 @@ namespace IntegrationTestApp
{
InitializeComponent();
DataContext = this;
- PositionChanged += (s, e) => this.GetControl("Position").Text = $"{Position}";
+ PositionChanged += (s, e) => this.GetControl("CurrentPosition").Text = $"{Position}";
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
- _orderTextBox = this.GetControl("Order");
+ _orderTextBox = this.GetControl("CurrentOrder");
_timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(250) };
_timer.Tick += TimerOnTick;
_timer.Start();
@@ -36,13 +36,13 @@ namespace IntegrationTestApp
{
base.OnOpened(e);
var scaling = PlatformImpl!.DesktopScaling;
- this.GetControl("Position").Text = $"{Position}";
- this.GetControl("ScreenRect").Text = $"{Screens.ScreenFromVisual(this)?.WorkingArea}";
- this.GetControl("Scaling").Text = $"{scaling}";
+ this.GetControl("CurrentPosition").Text = $"{Position}";
+ this.GetControl("CurrentScreenRect").Text = $"{Screens.ScreenFromVisual(this)?.WorkingArea}";
+ this.GetControl("CurrentScaling").Text = $"{scaling}";
if (Owner is not null)
{
- var ownerRect = this.GetControl("OwnerRect");
+ var ownerRect = this.GetControl("CurrentOwnerRect");
var owner = (Window)Owner;
ownerRect.Text = $"{owner.Position}, {PixelSize.FromSize(owner.FrameSize!.Value, scaling)}";
}
diff --git a/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs b/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
index a2bfb618d6..79eea09e01 100644
--- a/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
+++ b/tests/Avalonia.IntegrationTests.Appium/WindowTests.cs
@@ -92,7 +92,7 @@ namespace Avalonia.IntegrationTests.Appium
{
try
{
- _session.FindElementByAccessibilityId("WindowState").SendClick();
+ _session.FindElementByAccessibilityId("CurrentWindowState").SendClick();
_session.FindElementByAccessibilityId("WindowStateNormal").SendClick();
// Wait for animations to run.
@@ -112,7 +112,7 @@ namespace Avalonia.IntegrationTests.Appium
{
using (OpenWindow(new Size(400, 400), ShowWindowMode.NonOwned, WindowStartupLocation.Manual))
{
- var windowState = _session.FindElementByAccessibilityId("WindowState");
+ var windowState = _session.FindElementByAccessibilityId("CurrentWindowState");
Assert.Equal("Normal", windowState.GetComboBoxValue());
@@ -151,7 +151,7 @@ namespace Avalonia.IntegrationTests.Appium
public void ShowMode(ShowWindowMode mode)
{
using var window = OpenWindow(null, mode, WindowStartupLocation.Manual);
- var windowState = _session.FindElementByAccessibilityId("WindowState");
+ var windowState = _session.FindElementByAccessibilityId("CurrentWindowState");
var original = GetWindowInfo();
Assert.Equal("Normal", windowState.GetComboBoxValue());
@@ -354,7 +354,7 @@ namespace Avalonia.IntegrationTests.Appium
{
PixelRect? ReadOwnerRect()
{
- var text = _session.FindElementByAccessibilityId("OwnerRect").Text;
+ var text = _session.FindElementByAccessibilityId("CurrentOwnerRect").Text;
return !string.IsNullOrWhiteSpace(text) ? PixelRect.Parse(text) : null;
}
@@ -365,13 +365,13 @@ namespace Avalonia.IntegrationTests.Appium
try
{
return new(
- Size.Parse(_session.FindElementByAccessibilityId("ClientSize").Text),
- Size.Parse(_session.FindElementByAccessibilityId("FrameSize").Text),
- PixelPoint.Parse(_session.FindElementByAccessibilityId("Position").Text),
+ Size.Parse(_session.FindElementByAccessibilityId("CurrentClientSize").Text),
+ Size.Parse(_session.FindElementByAccessibilityId("CurrentFrameSize").Text),
+ PixelPoint.Parse(_session.FindElementByAccessibilityId("CurrentPosition").Text),
ReadOwnerRect(),
- PixelRect.Parse(_session.FindElementByAccessibilityId("ScreenRect").Text),
- double.Parse(_session.FindElementByAccessibilityId("Scaling").Text),
- Enum.Parse(_session.FindElementByAccessibilityId("WindowState").Text));
+ PixelRect.Parse(_session.FindElementByAccessibilityId("CurrentScreenRect").Text),
+ double.Parse(_session.FindElementByAccessibilityId("CurrentScaling").Text),
+ Enum.Parse(_session.FindElementByAccessibilityId("CurrentWindowState").Text));
}
catch (OpenQA.Selenium.NoSuchElementException) when (retry++ < 3)
{
diff --git a/tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs b/tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
index 90fdc2511f..039d30bbc1 100644
--- a/tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
+++ b/tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
@@ -393,7 +393,7 @@ namespace Avalonia.IntegrationTests.Appium
private int GetWindowOrder(string identifier)
{
var window = GetWindow(identifier);
- var order = window.FindElementByXPath("//*[@identifier='Order']");
+ var order = window.FindElementByXPath("//*[@identifier='CurrentOrder']");
return int.Parse(order.Text);
}