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:
1 parent
4ea44bb917
commit
5aeb6aa787
214 files changed
+6547
-826
No files matched your search
@@ -111,6 +111,9 @@ internal sealed class FakeSequenceSource(SyntheticSequence sequence, SequenceCon
|
||||
/// <summary>Thrown by the next save.</summary>
|
||||
public Exception? FailNextSave { get; set; }
|
||||
|
||||
/// <summary>Thrown by every save while set (an archive that stays offline).</summary>
|
||||
public Exception? FailSaves { get; set; }
|
||||
|
||||
/// <summary>Awaited by every decode (tests of cancellation).</summary>
|
||||
public Task DecodeGate { get; set; } = Task.CompletedTask;
|
||||
|
||||
@@ -158,6 +161,7 @@ internal sealed class FakeSequenceSource(SyntheticSequence sequence, SequenceCon
|
||||
|
||||
public Task<ProjectSettings> SaveProjectAsync(ProjectSettings project, ProjectSettings basis, CancellationToken cancellationToken)
|
||||
{
|
||||
if (FailSaves is { } lasting) return Task.FromException<ProjectSettings>(lasting);
|
||||
if (FailNextSave is { } failure)
|
||||
{
|
||||
FailNextSave = null;
|
||||
|
||||
Reference in new issue
Block a user