Browse Source

Thread.Sleep should be done before the assert in WindowOrder_Modal_Dialog_Stays_InFront_Of_Parent

pull/22221/head
Max Katz 3 weeks ago
parent
commit
d5f11c135f
  1. 4
      tests/Avalonia.IntegrationTests.Appium/WindowTests_MacOS.cs

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

@ -25,10 +25,10 @@ namespace Avalonia.IntegrationTests.Appium
{ {
mainWindow.Click(); mainWindow.Click();
var secondaryWindowIndex = GetWindowOrder("SecondaryWindow");
Thread.Sleep(300); // sync with timer Thread.Sleep(300); // sync with timer
var secondaryWindowIndex = GetWindowOrder("SecondaryWindow");
Assert.Equal(1, secondaryWindowIndex); Assert.Equal(1, secondaryWindowIndex);
} }
} }

Loading…
Cancel
Save