Update box-brush-authoring.e2e.js test to check transform session state
This commit is contained in:
@@ -121,6 +121,10 @@ test("shift+d duplicates the current selection and does not trigger while typing
|
|||||||
kind: "brushes"
|
kind: "brushes"
|
||||||
});
|
});
|
||||||
expect(Object.keys(afterDuplicateSnapshot.document.brushes)).toHaveLength(2);
|
expect(Object.keys(afterDuplicateSnapshot.document.brushes)).toHaveLength(2);
|
||||||
|
expect(afterDuplicateSnapshot.viewportTransientState.transformSession).toMatchObject({
|
||||||
|
kind: "active",
|
||||||
|
operation: "translate"
|
||||||
|
});
|
||||||
const duplicatedBrushId = afterDuplicateSnapshot.selection.ids?.[0];
|
const duplicatedBrushId = afterDuplicateSnapshot.selection.ids?.[0];
|
||||||
expect(duplicatedBrushId).toBeDefined();
|
expect(duplicatedBrushId).toBeDefined();
|
||||||
expect(duplicatedBrushId).not.toBe(sourceBrushId);
|
expect(duplicatedBrushId).not.toBe(sourceBrushId);
|
||||||
|
|||||||
Reference in New Issue
Block a user