From b2448f994bd46111e64a58f06cd4d74dfb618cd2 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 15 Apr 2026 06:53:39 +0200 Subject: [PATCH] Modify tests for box brush face editing commands --- .../box-brush-face-editing.command.test.ts | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/domain/box-brush-face-editing.command.test.ts b/tests/domain/box-brush-face-editing.command.test.ts index 18dceedb..bc72b0de 100644 --- a/tests/domain/box-brush-face-editing.command.test.ts +++ b/tests/domain/box-brush-face-editing.command.test.ts @@ -121,6 +121,10 @@ describe("box brush face editing commands", () => { materialId: "starter-concrete-checker" }) ); + store.setSelection({ + kind: "brushes", + ids: [createdBrush.id] + }); store.executeCommand( createSetBoxBrushAllFaceMaterialsCommand({ @@ -136,9 +140,8 @@ describe("box brush face editing commands", () => { ).toBe("starter-amber-grid"); }); expect(store.getState().selection).toEqual({ - kind: "brushFace", - brushId: createdBrush.id, - faceId: "negY" + kind: "brushes", + ids: [createdBrush.id] }); expect(store.undo()).toBe(true); @@ -202,6 +205,10 @@ describe("box brush face editing commands", () => { label: "Seed back face UVs" }) ); + store.setSelection({ + kind: "brushes", + ids: [createdBrush.id] + }); store.executeCommand( createUpdateBoxBrushAllFaceUvsCommand({ @@ -238,9 +245,8 @@ describe("box brush face editing commands", () => { expect(nextUv.flipV).toBe(false); }); expect(store.getState().selection).toEqual({ - kind: "brushFace", - brushId: createdBrush.id, - faceId: "negZ" + kind: "brushes", + ids: [createdBrush.id] }); expect(store.undo()).toBe(true);