test(app): screen tests start past the first-run dialog; look inside dialogs once laid out

The shell is now disabled behind the first-run dialog, so the sample app used by
the screen tests completes the first run unless a test asks for it (the Arabic
start-up test does). The Archive right-to-left test rendered after looking for
the dialogs' texts, which exist only once laid out; the padding test moves to
the Settings page that has text boxes without an icon.

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 20:48:02 +00:00
1 parent 712bf9417f
commit 38e40bf96d
2 files changed
+10 -6

No files matched your search

@@ -127,17 +127,18 @@ public sealed class ArchiveScreenSmokeTests
Assert.Equal(Loc.L("Tooltips.Archive.YearRowRtl", year.Title + " · " + year.Detail), year.RowToolTip, "the tooltip names the mirrored arrow keys");
await app.ExpectAsync<ArchiveView>("archive-overview-ar");
// The dialogs' templates exist once they are laid out: render first, then look inside.
await ArchiveScenes.ShowAsync(app.Shell, "rebuild");
Assert.Equal(FlowDirection.LeftToRight, TextFor(app, archive.SelectedArchive!.RootPath).FlowDirection, "the archive folder reads left to right");
await app.ExpectAsync<ArchiveView>("archive-rebuild-ar");
Assert.Equal(FlowDirection.LeftToRight, TextFor(app, archive.SelectedArchive!.RootPath).FlowDirection, "the archive folder reads left to right");
await ArchiveScenes.ShowAsync(app.Shell, "move");
var move = Assert.NotNull(archive.Dialog as RenameDialogViewModel);
await app.ExpectAsync<ArchiveView>("archive-move-ar");
var template = Assert.NotNull(app.FindAll<TextBox>().FirstOrDefault(t => t.IsVisible && EditBehavior.GetField(t) == move.Template));
Assert.Equal(FlowDirection.LeftToRight, template.FlowDirection, "the naming template reads left to right");
Assert.Equal(FlowDirection.LeftToRight, TextFor(app, move.Rows[0].From).FlowDirection, "a folder before the move reads left to right");
Assert.Equal(FlowDirection.LeftToRight, TextFor(app, move.Rows[0].To).FlowDirection, "a folder after the move reads left to right");
await app.ExpectAsync<ArchiveView>("archive-move-ar");
move.CloseCommand.Execute(null);
}
finally