Enhance selection duplication logic and update tests

This commit is contained in:
2026-04-05 04:33:28 +02:00
parent db1210831c
commit 0581d49ecc
2 changed files with 13 additions and 1 deletions

View File

@@ -142,6 +142,10 @@ test("shift+d duplicates the current selection and does not trigger while typing
kind: "brushes"
});
expect(Object.keys(afterDuplicateSnapshot.document.brushes)).toHaveLength(2);
expect(afterDuplicateSnapshot.viewportTransientState.transformSession).toMatchObject({
kind: "active",
operation: "translate"
});
const duplicatedBrushId = afterDuplicateSnapshot.selection.ids?.[0];
expect(duplicatedBrushId).toBeDefined();