Browse Source

Try to get test to pass on CI

amwx 5 years ago
parent
commit
05c6978617
1 changed files with 5 additions and 1 deletions
  1. 5 1
      tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs

+ 5 - 1
tests/Avalonia.Controls.UnitTests/Primitives/PopupTests.cs

@@ -416,8 +416,12 @@ namespace Avalonia.Controls.UnitTests.Primitives
                 };
                 ((ISetLogicalParent)p).SetParent(p.PlacementTarget);
 
+                p.Opened += (s, e) =>
+                {
+                    tb.Focus();
+                };
+
                 p.Open();
-                tb.Focus();
 
                 Assert.True(FocusManager.Instance?.Current == tb);
             }