From dee39d431930d430c3a976e237934a68027d2488 Mon Sep 17 00:00:00 2001 From: Jaybe Date: Wed, 19 Nov 2025 10:45:53 +0900 Subject: [PATCH] =?UTF-8?q?Undo/Redo=20=EB=B0=8F=20=EB=B3=B5=EC=A0=9C=20?= =?UTF-8?q?=EB=8B=A8=EC=B6=95=ED=82=A4=20E2E=EB=A5=BC=20OS=EB=B3=84?= =?UTF-8?q?=EB=A1=9C=20=EC=A7=80=EC=9B=90=ED=95=98=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/e2e/editor.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/e2e/editor.spec.ts b/tests/e2e/editor.spec.ts index a97780f..8e3480b 100644 --- a/tests/e2e/editor.spec.ts +++ b/tests/e2e/editor.spec.ts @@ -432,13 +432,15 @@ test("Cmd/Ctrl+Z로 블록 추가를 Undo 하고 Cmd/Ctrl+Shift+Z로 Redo 할 await expect(canvas.getByTestId("editor-block")).toHaveCount(1); // Cmd/Ctrl + Z 로 Undo 한다. - await page.keyboard.press("Meta+Z"); + const undoShortcut = process.platform === "darwin" ? "Meta+Z" : "Control+Z"; + await page.keyboard.press(undoShortcut); // Undo 후에는 블록이 0개가 되어야 한다. await expect(canvas.getByTestId("editor-block")).toHaveCount(0); // Cmd/Ctrl + Shift + Z 로 Redo 한다. - await page.keyboard.press("Meta+Shift+Z"); + const redoShortcut = process.platform === "darwin" ? "Meta+Shift+Z" : "Control+Shift+Z"; + await page.keyboard.press(redoShortcut); // Redo 후 다시 블록이 1개가 되어야 한다. await expect(canvas.getByTestId("editor-block")).toHaveCount(1); @@ -518,7 +520,8 @@ test("Cmd/Ctrl+D 단축키로 선택된 블록을 복제할 수 있어야 한다 await sidebarEditor.fill("복제 대상 블록"); // Cmd/Ctrl + D 로 복제한다. - await page.keyboard.press("Meta+D"); + const duplicateShortcut = process.platform === "darwin" ? "Meta+D" : "Control+D"; + await page.keyboard.press(duplicateShortcut); // 블록이 두 개가 되어야 한다. blocks = canvas.getByTestId("editor-block");