Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions tests/UI/Logic/AccessibleNamesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@
{
private static readonly string[] SkippedWindows =
[
// Needs a video/file and starts work in the constructor.
// Runtime-only fullscreen host: requires an existing VideoPlayerControl plus media state
// and callbacks; it is not a DI/view-model tool window that this reflection sweep can build.
"FullScreenVideoWindow",

// Factory-created modal with a private multi-argument constructor. It is exercised through
// MessageBox.Show rather than constructed from a DI-resolvable view model.
"MessageBox",
];

[AvaloniaFact]
Expand Down Expand Up @@ -99,7 +105,8 @@
}
}

Assert.True(opened > 50, $"Only {opened} windows opened; skipped: {string.Join(", ", skipped)}");
Assert.True(skipped.Count == 0, $"Windows skipped structurally: {string.Join(", ", skipped)}");
Assert.True(opened > 50, $"Only {opened} windows opened");
Assert.True(unnamed.Length == 0, $"Inputs without an accessible name ({opened} windows opened, {skipped.Count} skipped):\n{unnamed}");
}

Expand Down Expand Up @@ -130,9 +137,9 @@
parts.Add($"name={control.Name}");
}

if (control is TextBox textBox && !string.IsNullOrEmpty(textBox.Watermark))

Check warning on line 140 in tests/UI/Logic/AccessibleNamesTests.cs

View workflow job for this annotation

GitHub Actions / test

'TextBox.Watermark' is obsolete: 'Use PlaceholderText instead.'
{
parts.Add($"watermark={textBox.Watermark}");

Check warning on line 142 in tests/UI/Logic/AccessibleNamesTests.cs

View workflow job for this annotation

GitHub Actions / test

'TextBox.Watermark' is obsolete: 'Use PlaceholderText instead.'
}

var parent = control.Parent;
Expand Down
Loading