Skip to content

Commit edddafd

Browse files
shanselmanCopilot
andcommitted
Update icon fallback UI expectation
Assert that rendered A2UI icons use the SymbolThemeFontFamily resource so the UI test matches the Windows 10 fallback behavior introduced by this PR. Co-authored-by: Copilot <[email protected]>
1 parent bc97b81 commit edddafd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/OpenClaw.Tray.UITests/A2UIControlMatrixTests.cs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ await _ui.RunOnUIAsync(() =>
243243
}
244244

245245
[Fact]
246-
public Task Icon_RendersFontIcon_WithSegoeFluentGlyph() => RunAsync(
246+
public Task Icon_RendersFontIcon_WithSymbolThemeFontFamily() => RunAsync(
247247
"Icon → FontIcon",
248248
Surface("s", "i", new[]
249249
{
@@ -252,7 +252,8 @@ public Task Icon_RendersFontIcon_WithSegoeFluentGlyph() => RunAsync(
252252
root =>
253253
{
254254
var fi = FindLogical<FontIcon>(root).Single();
255-
Assert.Equal("Segoe Fluent Icons", fi.FontFamily.Source);
255+
var expectedFont = (Microsoft.UI.Xaml.Media.FontFamily)Application.Current.Resources["SymbolThemeFontFamily"];
256+
Assert.Equal(expectedFont.Source, fi.FontFamily.Source);
256257
// "search" maps to the Segoe MDL2 Search glyph (U+E721).
257258
Assert.Equal("", fi.Glyph);
258259
});

0 commit comments

Comments
 (0)