diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_AutoSuggestBox.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_AutoSuggestBox.cs index cea0487ef239..143696baa097 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_AutoSuggestBox.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_AutoSuggestBox.cs @@ -46,10 +46,12 @@ public async Task When_SymbolIcon_Verify_Size() await UITestHelper.Load(SUT); + var expectedGlyph = SymbolIcon.ConvertSymbolValueToGlyph((int)Symbol.Home); + #if __SKIA__ || __WASM__ - var tb = SUT.FindChildren().Single(tb => tb.Text.Length == 1 && tb.Text[0] == (char)Symbol.Home); + var tb = SUT.FindChildren().Single(tb => tb.Text.Length == 1 && tb.Text[0] == expectedGlyph); #else - var tb = (TextBlock)SUT.EnumerateAllChildren().SingleOrDefault(c => c is TextBlock textBlock && textBlock.Text.Length == 1 && textBlock.Text[0] == (char)Symbol.Home); + var tb = (TextBlock)SUT.EnumerateAllChildren().SingleOrDefault(c => c is TextBlock textBlock && textBlock.Text.Length == 1 && textBlock.Text[0] == expectedGlyph); #endif Assert.AreEqual(12, tb.FontSize); diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Icons/Given_IconSourceElement.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Icons/Given_IconSourceElement.cs index c0a2e42c0853..06658d63f526 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Icons/Given_IconSourceElement.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Icons/Given_IconSourceElement.cs @@ -25,10 +25,10 @@ public async Task When_Switch_Sources() var symbolChild = VisualTreeUtils.FindVisualChildByType(iconSourceElement); Assert.IsNotNull(symbolChild); - Assert.AreEqual("\uE10B", symbolChild.Text); //E10B represents Accept symbol + Assert.AreEqual("\uE8FB", symbolChild.Text); //E8FB represents Accept symbol symbolIconSource.Symbol = Symbol.Cancel; - Assert.AreEqual("\uE10A", symbolChild.Text); //E10A represents Cancel symbol + Assert.AreEqual("\uE711", symbolChild.Text); //E711 represents Cancel symbol // PathIconSource var ellipseGeometry = new EllipseGeometry()