test(app): capture the editor's busy state

The capture sample can mark an analysis of the editor sequence as running, so
sequence-busy-<theme>.png shows the settings waiting with the viewing tools live.

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-03 10:53:18 +00:00
1 parent 3a29b4fc6a
commit ea6a081062
3 files changed
+34 -2

No files matched your search

+10 -1
View File
@@ -117,7 +117,7 @@ public static class ScreenCapture
/// <summary>
/// The sequence editor on the synthetic sunset: every section in both themes (<c>sequence-&lt;tab&gt;-&lt;theme&gt;.png</c>,
/// the Camera tab with a keyframe selected, the Export tab as Export.html with the crop mask and no compare), then
/// the preview overlays, the waveform and the "what changed" toast of Optimise all.
/// the preview overlays, the waveform, the "what changed" toast of Optimise all and the busy state.
/// </summary>
private static async Task<int> CaptureEditorAsync(MainWindow window, ShellViewModel shell, SampleData sample, string directory)
{
@@ -156,6 +156,15 @@ public static class ScreenCapture
editor.Session.Undo();
foreach (var toast in window.Toasts.Toasts.ToList()) window.Toasts.Dismiss(toast);
}
// Last, as it stays: an analysis of the sequence running (settings disabled, viewing tools live).
await sample.MarkAnalysingAsync(id);
await editor.AttachJobsAsync();
foreach (var theme in Themes)
{
ThemeManager.Apply(theme);
written += await SaveEditorAsync(window, editor, directory, "sequence-busy", theme);
}
return written;
}