提交 88cd6b1c 编写于 作者: J Jerome Laban

chore: Adjust visual search

上级 a25c6764
......@@ -16,6 +16,8 @@ using TreeViewItem = Microsoft.UI.Xaml.Controls.TreeViewItem;
using Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.TreeViewTests;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Uno.UI;
using MUXControlsTestApp.Utilities;
namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls;
......@@ -208,7 +210,7 @@ public class Given_TreeView
#if HAS_UNO
Assert.AreEqual(
1,
SUT.myTree.FindChildren<TextBlock>().Count(c => c.Text == "Child 21"));
MUXTestPage.FindVisualChildrenByType<TextBlock>(SUT.myTree).Count(c => c.Text == "Child 21"));
#endif
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册