test(settings): the archive smoke test edits the archive at the archive folder
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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
1 file changed
+2
@@ -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 } });
|
||||
|
||||
Reference in new issue
Block a user