From d5133b613be6f09a049a1335935793c62f2858c9 Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Wed, 29 Mar 2023 17:13:58 -0400 Subject: [PATCH] chore: Adjust for node validation (cherry picked from commit a25c6764cc5727d7af4bf3ff261c93099b9afcbd) --- .../Tests/Windows_UI_Xaml_Controls/Given_TreeView.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TreeView.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TreeView.cs index 6a01c665f8..1754117eee 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TreeView.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TreeView.cs @@ -201,6 +201,12 @@ public class Given_TreeView child3Node.IsExpanded = true; await TestServices.WindowHelper.WaitForIdle(); + +#if HAS_UNO + Assert.AreEqual( + 1, + SUT.myTree.FindChildren().Count(c => c.Text == "Child 21")); +#endif } } -- GitLab