feat(launcher): stabilize prepared content updates
Some checks failed
CI / linux-portable (push) Failing after 3m12s
CI / windows-gate (push) Failing after 6m35s
CI / release (push) Has been skipped

This commit is contained in:
Erik 2026-08-25 19:17:13 +02:00
parent f160f3fee1
commit af9327a17b
42 changed files with 3706 additions and 147 deletions

View file

@ -152,6 +152,27 @@ public sealed class LauncherUpdateViewModelTests
Assert.Equal(0, updater.StageCalls);
}
[Fact]
public async Task AnotherStartupQuestionDefersButDoesNotLoseTheUpdatePrompt()
{
var updater = new FakeUpdater { ClientUpdateAvailable = true };
bool canOpen = false;
using var viewModel = new LauncherUpdateViewModel(
updater,
new ImmediateUiDispatcher(),
() => { },
canOpen: () => canOpen,
canMutate: () => true);
await viewModel.StartupCheckAsync();
Assert.False(viewModel.IsOpen);
canOpen = true;
viewModel.TryOpenPendingUpdate();
Assert.True(viewModel.IsOpen);
}
[Fact]
public async Task UpdatingIsRefusedWhileASessionIsRunning()
{