fix(ui): group radio buttons by their panel; the RTL dialog test waits for Loaded

The installer capture builds one window per stage, each with its own view model.
Radio buttons named into one group are shared by every window not yet on screen,
so Just me / All users of two windows unchecked each other forever.
The right-to-left smoke test now waits for the dialog's Loaded event (the first
render can come after an idle tick) instead of an idle dispatcher.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-06 08:03:13 +00:00
1 parent a56944b628
commit b82f7462f2
7 files changed
+27 -24

No files matched your search

@@ -3,7 +3,6 @@ using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Threading;
using Titano.App.Infrastructure;
using Titano.App.Sections;
using Titano.App.Server;
@@ -142,8 +141,11 @@ public sealed class SettingsScreenSmokeTests
try
{
Assert.Equal(FlowDirection.RightToLeft, main.FlowDirection);
// Loaded comes with the first render, which can follow an idle tick; class handlers run before this one.
var loaded = new TaskCompletionSource();
dialog.Loaded += (_, _) => loaded.TrySetResult();
dialog.Show();
await dialog.Dispatcher.InvokeAsync(() => { }, DispatcherPriority.ApplicationIdle);
await loaded.Task.WaitAsync(TimeSpan.FromSeconds(10));
Assert.Equal(FlowDirection.RightToLeft, dialog.FlowDirection, "a window opened after the switch (a dialog) is mirrored too");
await app.ExpectAsync<AboutView>("about-ar");