.
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user