Browse Source

Fix macOS intgr tests bad merge

release/11.1.3
Max Katz 2 years ago
parent
commit
3316e84d46
  1. 5
      tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs

5
tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs

@ -423,7 +423,10 @@ namespace Avalonia.IntegrationTests.Appium
private AppiumWebElement GetWindow(string identifier)
{
return GetWindow(identifier);
// The Avalonia a11y tree currently exposes two nested Window elements, this is a bug and should be fixed
// but in the meantime use the `parent::' selector to return the parent "real" window.
return Session.FindElementByXPath(
$"XCUIElementTypeWindow//*[@identifier='{identifier}']/parent::XCUIElementTypeWindow");
}
private int GetWindowOrder(string identifier)

Loading…
Cancel
Save