.
CI / test (push) Successful in 5m18s
CI / e2e (push) Failing after 5m58s
CI / pr_and_merge (push) Has been skipped

This commit is contained in:
2025-12-15 00:19:31 +09:00
parent 9e08ba284b
commit 8cbeb1a6ce
2 changed files with 24 additions and 22 deletions
+5 -14
View File
@@ -75,22 +75,13 @@ test("프로젝트 설정 패널에서 캔버스 배경색을 변경하면 에
test("프로젝트 설정 패널에서 캔버스 프리셋을 변경하면 에디터 캔버스 너비가 달라져야 한다", async ({ page }) => {
await page.goto("/editor");
const presetSelect = page.getByRole("combobox", { name: "Canvas width 프리셋" });
const widthInput = page.getByLabel("Canvas width 커스텀");
const presetSelect = page.getByRole("combobox", { name: "Canvas width 프리셋" });
await presetSelect.selectOption("mobile");
await expect
.poll(async () => parseFloat(await widthInput.inputValue()), { timeout: 5000 })
.toBeGreaterThan(380);
const mobileWidth = parseFloat(await widthInput.inputValue());
expect(mobileWidth).toBeLessThan(400);
await presetSelect.selectOption("mobile");
await expect(presetSelect).toHaveValue("mobile");
await presetSelect.selectOption("desktop");
await expect
.poll(async () => parseFloat(await widthInput.inputValue()), { timeout: 5000 })
.toBeGreaterThan(1180);
const desktopWidth = parseFloat(await widthInput.inputValue());
expect(desktopWidth).toBeLessThan(1220);
await presetSelect.selectOption("desktop");
await expect(presetSelect).toHaveValue("desktop");
});
test("텍스트 블록을 더블클릭해서 내용을 수정할 수 있어야 한다", async ({ page }) => {