Browse Source

Merge pull request #10555 from AvaloniaUI/flaky-mac-os-test

Flaky MacOS Integration tests: add a delay when closing child windows.
Dan Walmsley 2 years ago
parent
commit
736d9860b0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      tests/Avalonia.IntegrationTests.Appium/ElementExtensions.cs

+ 1 - 0
tests/Avalonia.IntegrationTests.Appium/ElementExtensions.cs

@@ -140,6 +140,7 @@ namespace Avalonia.IntegrationTests.Appium
                         .First(x => x.Text == newWindowTitle);
                     var (close, _, _) = ((AppiumWebElement)newWindow).GetChromeButtons();
                     close!.Click();
+                    Thread.Sleep(1000);
                 });
             }
         }