test(postit): run all Avalonia UI tests in the shared collection fixture
Replace [AvaloniaFact]/[AvaloniaTheory] and direct GetOrStartForAssembly dispatches with ui.RunAsync in AvaloniaUiCollection, avoiding a second headless session that could hang PodcastBroadcasterTests. Add a synchronous RunAsync overload and update MessagingSessionTests contact-preference assertions for the audio-only capabilities announced on Linux desktop. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
4493ac0149
commit
8ab3c02ebc
27 changed files with 443 additions and 332 deletions
|
|
@ -38,6 +38,12 @@ public sealed class AvaloniaUiFixture : IAsyncLifetime
|
|||
}, ct);
|
||||
}
|
||||
|
||||
public Task RunAsync(Action action, CancellationToken ct) => RunAsync(() =>
|
||||
{
|
||||
action();
|
||||
return Task.CompletedTask;
|
||||
}, ct);
|
||||
|
||||
public Task WithWindowAsync(Func<Control> createContent, Func<Window, Task> test, CancellationToken ct,
|
||||
double width = 800, double height = 600) => RunAsync(async () =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue