Skip to content

Commit

Permalink
Fix macOS intgr tests bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed Aug 13, 2024
1 parent f90a868 commit 3316e84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ private IDisposable OpenWindow(

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)
Expand Down

0 comments on commit 3316e84

Please sign in to comment.