Add comprehensive tests for EditSection functionality in the Windows application

- Implement tests for picker behavior, including loading sequences, searching, and handling empty libraries.
- Validate sequence opening via Enter key and double-click actions.
- Ensure proper handling of unsaved edits and sequence deletion scenarios.
- Verify accessibility features for picker rows across different languages.
- Introduce a dialog counting mechanism to manage unsaved edit confirmations.
This commit is contained in:
Alby96 committed 2026-10-19 12:10:42 +02:00
1 parent 4ea44bb917
commit 5aeb6aa787
214 files changed
+6547 -826

No files matched your search

+43 -3
View File
@@ -7,6 +7,18 @@
<data name="Editor.Analyse" xml:space="preserve"><value>Analyse</value></data>
<data name="Editor.Analyse.Queued" xml:space="preserve"><value>Analysis queued</value></data>
<data name="Editor.Analyse.QueuedServer" xml:space="preserve"><value>Analysis queued on {0}</value></data>
<data name="Editor.Analysis.Findings" xml:space="preserve"><value>Findings</value><comment>what the analyses found (warnings and notes), as a list</comment></data>
<data name="Editor.Analysis.Flagged" xml:space="preserve"><value>Flagged frames</value></data>
<data name="Editor.Analysis.Flicker" xml:space="preserve"><value>Flicker</value></data>
<data name="Editor.Analysis.Light" xml:space="preserve"><value>Light</value><comment>whether the sequence is day, night or a transition</comment></data>
<data name="Editor.Analysis.Light.Day" xml:space="preserve"><value>Day</value></data>
<data name="Editor.Analysis.Light.DayToNight" xml:space="preserve"><value>Day to night</value></data>
<data name="Editor.Analysis.Light.Night" xml:space="preserve"><value>Night</value></data>
<data name="Editor.Analysis.Light.NightToDay" xml:space="preserve"><value>Night to day</value></data>
<data name="Editor.Analysis.Light.Unknown" xml:space="preserve"><value>Unclear</value></data>
<data name="Editor.Analysis.Shake" xml:space="preserve"><value>Shake</value></data>
<data name="Editor.Analysis.Steps" xml:space="preserve"><value>Exposure steps received</value><comment>exposure steps (EV changes) the pixels really show; keep the exposure qualifier, since a step alone is a stage of the Edit path</comment></data>
<data name="Editor.Analysis.StepsValue" xml:space="preserve"><value>{0} of {1}</value><comment>{0} exposure steps the pixels show, {1} steps in the metadata</comment></data>
<data name="Editor.Aspect.Ratio" xml:space="preserve"><value>{0}</value><comment>invariant</comment></data>
<data name="Editor.Aspect.Source" xml:space="preserve"><value>Source</value></data>
<data name="Editor.Back" xml:space="preserve"><value>Back</value></data>
@@ -26,6 +38,7 @@
<data name="Editor.Camera.OffsetY" xml:space="preserve"><value>Vertical placement</value></data>
<data name="Editor.Camera.RemoveKey" xml:space="preserve"><value>Remove keyframe</value></data>
<data name="Editor.Camera.Zoom" xml:space="preserve"><value>Zoom</value></data>
<data name="Editor.Change" xml:space="preserve"><value>Change sequence</value></data>
<data name="Editor.Chart.Clouds" xml:space="preserve"><value>cloud cover %</value></data>
<data name="Editor.Chart.Flicker" xml:space="preserve"><value>Flicker</value></data>
<data name="Editor.Chart.FlickerAfter" xml:space="preserve"><value>change after correction</value></data>
@@ -51,7 +64,6 @@
<data name="Editor.Copy.Restored" xml:space="preserve"><value>Project restored</value></data>
<data name="Editor.Copy.Same" xml:space="preserve"><value>Nothing to restore</value></data>
<data name="Editor.Copy.Undo" xml:space="preserve"><value>Undo</value></data>
<data name="Editor.Empty" xml:space="preserve"><value>Pick a sequence in the Library</value></data>
<data name="Editor.Error.FramesArriving" xml:space="preserve"><value>Photos are being added to this sequence; wait a moment and try again.</value><comment>long</comment></data>
<data name="Editor.Error.FramesChanged" xml:space="preserve"><value>The frames of this sequence changed on the server; get its proxies again.</value><comment>long</comment></data>
<data name="Editor.Error.Missing" xml:space="preserve"><value>This sequence is no longer in the archive.</value><comment>long</comment></data>
@@ -136,16 +148,17 @@
<data name="Editor.Frames.Flag.Missing" xml:space="preserve"><value>missing</value></data>
<data name="Editor.Frames.Flag.Undecodable" xml:space="preserve"><value>unreadable</value></data>
<data name="Editor.Frames.Flag.White" xml:space="preserve"><value>white</value></data>
<data name="Editor.Frames.FrameWarnings" xml:space="preserve"><value>Frame warnings</value><comment>heading of the Frames step's list of the findings about single frames (the Analysis step lists every finding)</comment></data>
<data name="Editor.Frames.Hero" xml:space="preserve"><value>hero</value></data>
<data name="Editor.Frames.HeroLabel" xml:space="preserve"><value>Hero frame</value></data>
<data name="Editor.Frames.HeroNone" xml:space="preserve"><value>Not set</value></data>
<data name="Editor.Frames.HeroValue" xml:space="preserve"><value>Frame {0}</value></data>
<data name="Editor.Frames.Include" xml:space="preserve"><value>Include</value></data>
<data name="Editor.Frames.IncludeFrame" xml:space="preserve"><value>Include frame</value></data>
<data name="Editor.Frames.NoFrameWarnings" xml:space="preserve"><value>No frame warnings</value></data>
<data name="Editor.Frames.NoWarnings" xml:space="preserve"><value>No warnings</value></data>
<data name="Editor.Frames.PreviewOnly" xml:space="preserve"><value>{0} preview</value></data>
<data name="Editor.Frames.SetHero" xml:space="preserve"><value>Set hero</value></data>
<data name="Editor.Frames.Warnings" xml:space="preserve"><value>Warnings</value></data>
<data name="Editor.Loading" xml:space="preserve"><value>Opening sequence</value></data>
<data name="Editor.Marker.Cut" xml:space="preserve"><value>Cut: pause or gap</value></data>
<data name="Editor.Marker.Keyframe" xml:space="preserve"><value>Keyframe</value></data>
@@ -168,6 +181,13 @@
<data name="Editor.OptimiseSection" xml:space="preserve"><value>Optimise section</value></data>
<data name="Editor.Outdated.Fetch" xml:space="preserve"><value>Get proxies</value></data>
<data name="Editor.Outdated.Title" xml:space="preserve"><value>Frames changed on {0}</value></data>
<data name="Editor.Path" xml:space="preserve"><value>Path</value><comment>the guided path of the Edit section: its steps from the analysis to the export</comment></data>
<data name="Editor.Picker.Cancel" xml:space="preserve"><value>Cancel</value></data>
<data name="Editor.Picker.Clear" xml:space="preserve"><value>Clear search</value></data>
<data name="Editor.Picker.List" xml:space="preserve"><value>Sequences</value></data>
<data name="Editor.Picker.Loading" xml:space="preserve"><value>Loading sequences</value></data>
<data name="Editor.Picker.NoMatch" xml:space="preserve"><value>No sequence matches</value></data>
<data name="Editor.Picker.Title" xml:space="preserve"><value>Choose a sequence</value></data>
<data name="Editor.Preview" xml:space="preserve"><value>Preview</value></data>
<data name="Editor.Preview.ActualSize" xml:space="preserve"><value>1:1</value><comment>invariant</comment></data>
<data name="Editor.Preview.Clip" xml:space="preserve"><value>Preview 10 s</value></data>
@@ -211,7 +231,6 @@
<data name="Editor.ResetToAuto" xml:space="preserve"><value>Back to Auto</value></data>
<data name="Editor.Save.Failed" xml:space="preserve"><value>Changes not saved</value></data>
<data name="Editor.Save.Retry" xml:space="preserve"><value>Retry</value></data>
<data name="Editor.Sections" xml:space="preserve"><value>Sections</value></data>
<data name="Editor.ServerJob.Cancel" xml:space="preserve"><value>Cancel job</value></data>
<data name="Editor.ServerJob.Ended" xml:space="preserve"><value>{0} {1} on {2}</value></data>
<data name="Editor.ServerJob.Left" xml:space="preserve"><value>{0} left</value></data>
@@ -226,12 +245,33 @@
<data name="Editor.Stack.NoStarField" xml:space="preserve"><value>No star field found</value></data>
<data name="Editor.Stack.StarField" xml:space="preserve"><value>Star field found</value></data>
<data name="Editor.Stack.StarTrails" xml:space="preserve"><value>Star trails</value></data>
<data name="Editor.Step.Analysed" xml:space="preserve"><value>Analysed</value></data>
<data name="Editor.Step.AnalysisUnavailable" xml:space="preserve"><value>Analysis unavailable</value><comment>state of the Analysis step: the saved deep analysis cannot be read now (archive offline, file moved or damaged)</comment></data>
<data name="Editor.Step.Announce" xml:space="preserve"><value>Step {0} of {1}: {2}, {3}</value><comment>{0} step number, {1} steps, {2} step name, {3} its state (&quot;Auto&quot;, &quot;Not rendered&quot;)</comment></data>
<data name="Editor.Step.Blocked" xml:space="preserve"><value>Not renderable</value></data>
<data name="Editor.Step.Counter" xml:space="preserve"><value>{0} / {1}</value><comment>invariant: {0} the step shown, {1} the steps of the path</comment></data>
<data name="Editor.Step.Edited" xml:space="preserve"><value>Edited</value><comment>a step whose settings were changed by hand (not Auto)</comment></data>
<data name="Editor.Step.Excluded" xml:space="preserve"><value>Excluded: {0:N0}</value><comment>{0} frames the project excludes</comment></data>
<data name="Editor.Step.Flagged.one" xml:space="preserve"><value>{0:N0} flagged frame</value></data>
<data name="Editor.Step.Flagged.other" xml:space="preserve"><value>{0:N0} flagged frames</value></data>
<data name="Editor.Step.FramesChanged" xml:space="preserve"><value>Frames changed</value></data>
<data name="Editor.Step.MissingData" xml:space="preserve"><value>Missing data</value></data>
<data name="Editor.Step.Next" xml:space="preserve"><value>Next</value></data>
<data name="Editor.Step.NextSequence" xml:space="preserve"><value>Next sequence</value></data>
<data name="Editor.Step.NotRendered" xml:space="preserve"><value>Not rendered</value></data>
<data name="Editor.Step.Optional" xml:space="preserve"><value>Optional</value></data>
<data name="Editor.Step.Outdated" xml:space="preserve"><value>Changed since render</value></data>
<data name="Editor.Step.Previous" xml:space="preserve"><value>Previous</value></data>
<data name="Editor.Step.Rendered" xml:space="preserve"><value>Rendered</value></data>
<data name="Editor.Step.Shortcut" xml:space="preserve"><value>Alt+{0}</value><comment>invariant: the step's keyboard shortcut, {0} its number</comment></data>
<data name="Editor.Step.Waiting" xml:space="preserve"><value>Needs the analysis</value></data>
<data name="Editor.Summary.Frames.one" xml:space="preserve"><value>{0:N0} frame</value></data>
<data name="Editor.Summary.Frames.other" xml:space="preserve"><value>{0:N0} frames</value></data>
<data name="Editor.Summary.Interval" xml:space="preserve"><value>{0} s interval</value></data>
<data name="Editor.Summary.Source" xml:space="preserve"><value>source {0}</value></data>
<data name="Editor.Summary.Warnings.one" xml:space="preserve"><value>{0} warning</value></data>
<data name="Editor.Summary.Warnings.other" xml:space="preserve"><value>{0} warnings</value></data>
<data name="Editor.Tab.Analysis" xml:space="preserve"><value>Analysis</value></data>
<data name="Editor.Tab.Camera" xml:space="preserve"><value>Camera</value></data>
<data name="Editor.Tab.Export" xml:space="preserve"><value>Export</value></data>
<data name="Editor.Tab.Exposure" xml:space="preserve"><value>Exposure</value></data>