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

@ -39,6 +39,34 @@ public sealed class SessionConfigComposerTests
LoginCommands = ["/tell someone, hi"],
};
[Fact]
public void PendingClientCompatibilityCannotComposePlayOrProbeSession()
{
LauncherInstallRecord pending = Install with
{
RequiresClientCompatibilityConfirmation = true,
};
InvalidOperationException play = Assert.Throws<InvalidOperationException>(() =>
SessionConfigComposer.Compose(
Server(),
Account(),
Character(LaunchMode.Gui),
pending,
Paths,
"pending-play"));
InvalidOperationException probe = Assert.Throws<InvalidOperationException>(() =>
SessionConfigComposer.ComposeProbe(
Server(),
Account(),
pending,
Paths,
"pending-probe"));
Assert.Contains("matching client", play.Message, StringComparison.OrdinalIgnoreCase);
Assert.Contains("matching client", probe.Message, StringComparison.OrdinalIgnoreCase);
}
[Fact]
public void GuiModeIncludesCharacterSelectorAndOmitsPolicy()
{