Update tool mode in tests and CSS

This commit is contained in:
2026-04-03 00:23:52 +02:00
parent 697ad5cbca
commit 32a611a71f
3 changed files with 13 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ describe("player start command", () => {
it("restores the previous tool mode across undo and redo when placing PlayerStart", () => {
const store = createEditorStore();
store.setToolMode("box-create");
store.setToolMode("create");
store.executeCommand(
createSetPlayerStartCommand({
position: {
@@ -25,7 +25,7 @@ describe("player start command", () => {
expect(store.getState().toolMode).toBe("select");
expect(store.undo()).toBe(true);
expect(store.getState().toolMode).toBe("box-create");
expect(store.getState().toolMode).toBe("create");
expect(store.getState().document.entities).toEqual({});
expect(store.redo()).toBe(true);
@@ -49,7 +49,7 @@ describe("player start command", () => {
const existingPlayerStart = Object.values(store.getState().document.entities)[0];
store.setToolMode("box-create");
store.setToolMode("create");
store.executeCommand(
createSetPlayerStartCommand({
entityId: existingPlayerStart.id,
@@ -73,7 +73,7 @@ describe("player start command", () => {
});
expect(store.undo()).toBe(true);
expect(store.getState().toolMode).toBe("box-create");
expect(store.getState().toolMode).toBe("create");
expect(store.getState().document.entities[existingPlayerStart.id]).toEqual(existingPlayerStart);
expect(store.redo()).toBe(true);