Modify tests for box brush face editing commands
This commit is contained in:
@@ -121,6 +121,10 @@ describe("box brush face editing commands", () => {
|
|||||||
materialId: "starter-concrete-checker"
|
materialId: "starter-concrete-checker"
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
store.setSelection({
|
||||||
|
kind: "brushes",
|
||||||
|
ids: [createdBrush.id]
|
||||||
|
});
|
||||||
|
|
||||||
store.executeCommand(
|
store.executeCommand(
|
||||||
createSetBoxBrushAllFaceMaterialsCommand({
|
createSetBoxBrushAllFaceMaterialsCommand({
|
||||||
@@ -136,9 +140,8 @@ describe("box brush face editing commands", () => {
|
|||||||
).toBe("starter-amber-grid");
|
).toBe("starter-amber-grid");
|
||||||
});
|
});
|
||||||
expect(store.getState().selection).toEqual({
|
expect(store.getState().selection).toEqual({
|
||||||
kind: "brushFace",
|
kind: "brushes",
|
||||||
brushId: createdBrush.id,
|
ids: [createdBrush.id]
|
||||||
faceId: "negY"
|
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(store.undo()).toBe(true);
|
expect(store.undo()).toBe(true);
|
||||||
@@ -202,6 +205,10 @@ describe("box brush face editing commands", () => {
|
|||||||
label: "Seed back face UVs"
|
label: "Seed back face UVs"
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
store.setSelection({
|
||||||
|
kind: "brushes",
|
||||||
|
ids: [createdBrush.id]
|
||||||
|
});
|
||||||
|
|
||||||
store.executeCommand(
|
store.executeCommand(
|
||||||
createUpdateBoxBrushAllFaceUvsCommand({
|
createUpdateBoxBrushAllFaceUvsCommand({
|
||||||
@@ -238,9 +245,8 @@ describe("box brush face editing commands", () => {
|
|||||||
expect(nextUv.flipV).toBe(false);
|
expect(nextUv.flipV).toBe(false);
|
||||||
});
|
});
|
||||||
expect(store.getState().selection).toEqual({
|
expect(store.getState().selection).toEqual({
|
||||||
kind: "brushFace",
|
kind: "brushes",
|
||||||
brushId: createdBrush.id,
|
ids: [createdBrush.id]
|
||||||
faceId: "negZ"
|
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(store.undo()).toBe(true);
|
expect(store.undo()).toBe(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user