CI: feature/builder-10-block-types #4
@@ -432,13 +432,15 @@ test("Cmd/Ctrl+Z로 블록 추가를 Undo 하고 Cmd/Ctrl+Shift+Z로 Redo 할
|
|||||||
await expect(canvas.getByTestId("editor-block")).toHaveCount(1);
|
await expect(canvas.getByTestId("editor-block")).toHaveCount(1);
|
||||||
|
|
||||||
// Cmd/Ctrl + Z 로 Undo 한다.
|
// 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개가 되어야 한다.
|
// Undo 후에는 블록이 0개가 되어야 한다.
|
||||||
await expect(canvas.getByTestId("editor-block")).toHaveCount(0);
|
await expect(canvas.getByTestId("editor-block")).toHaveCount(0);
|
||||||
|
|
||||||
// Cmd/Ctrl + Shift + Z 로 Redo 한다.
|
// 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개가 되어야 한다.
|
// Redo 후 다시 블록이 1개가 되어야 한다.
|
||||||
await expect(canvas.getByTestId("editor-block")).toHaveCount(1);
|
await expect(canvas.getByTestId("editor-block")).toHaveCount(1);
|
||||||
@@ -518,7 +520,8 @@ test("Cmd/Ctrl+D 단축키로 선택된 블록을 복제할 수 있어야 한다
|
|||||||
await sidebarEditor.fill("복제 대상 블록");
|
await sidebarEditor.fill("복제 대상 블록");
|
||||||
|
|
||||||
// Cmd/Ctrl + D 로 복제한다.
|
// 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");
|
blocks = canvas.getByTestId("editor-block");
|
||||||
|
|||||||
Reference in New Issue
Block a user