From 162197b3058b0912c9c7c0fb9482ba33aac2b60b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 11:29:56 +0000 Subject: [PATCH] test(settings): the archive smoke test edits the archive at the archive folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The sample app shows a display path as its archive folder, and Settings › Archive edits only the archive at the archive folder (never another one of the index), so the test points the folder at the archive it changes. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- tests/Titano.App.Tests/Settings/SettingsScreenSmokeTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Titano.App.Tests/Settings/SettingsScreenSmokeTests.cs b/tests/Titano.App.Tests/Settings/SettingsScreenSmokeTests.cs index c9c8877d..ebe92133 100644 --- a/tests/Titano.App.Tests/Settings/SettingsScreenSmokeTests.cs +++ b/tests/Titano.App.Tests/Settings/SettingsScreenSmokeTests.cs @@ -105,6 +105,8 @@ public sealed class SettingsScreenSmokeTests var settings = shell.Settings; // The open archive's own thumbnail size (archive.json) is what Settings › Archive shows. var archive = Assert.NotNull(await Titano.App.Archiving.CurrentArchive.FindAsync(shell.Services.Database!, shell.Services.Settings.LastArchivePath)); + // The sample shows a display path as its archive folder; the rows edit only the archive at the archive folder. + shell.Services.Settings.LastArchivePath = archive.RootPath; var manifestPath = new Titano.Core.Archiving.ArchivePaths(archive.RootPath).ManifestPath; var manifest = Titano.Core.Archiving.ManifestStore.ReadArchive(manifestPath); Titano.Core.Archiving.ManifestStore.WriteArchive(manifestPath, manifest with { ThumbnailPolicy = new Titano.Core.Archiving.ThumbnailPolicy { LongEdge = 240 } });