e2e 테스트 수정
CI / test (push) Successful in 4m41s
CI / e2e (push) Has been skipped
CI / pr_and_merge (push) Successful in 1m33s

This commit is contained in:
2025-12-02 12:15:05 +09:00
parent c331d5e14a
commit 5832b64d39
3 changed files with 70 additions and 12 deletions
+7 -8
View File
@@ -1074,7 +1074,7 @@ test("폼 체크박스 옵션 간격 px 입력이 프리뷰에서도 em 스케
expect(gapStyles.inlineRowGap.endsWith("em")).toBeTruthy();
});
test("FormBlock 은 프리뷰에서 별도 폼 컨트롤러 DOM 을 렌더하지 않아야 한다 (고정 너비 설정 시)", async ({ page }) => {
test("FormBlock 은 프리뷰에서 폼 컨트롤러 DOM 을 렌더야 한다 (고정 너비 설정 시)", async ({ page }) => {
await page.goto("/editor");
await page.getByRole("button", { name: "폼 컨트롤러" }).click();
@@ -1093,10 +1093,10 @@ test("FormBlock 은 프리뷰에서 별도 폼 컨트롤러 DOM 을 렌더하지
await expect(page.getByRole("heading", { name: "Page Preview" })).toBeVisible();
const formLocator = page.getByTestId("preview-form-controller");
await expect(formLocator).toHaveCount(0);
await expect(formLocator).toHaveCount(1);
});
test("FormBlock 은 프리뷰에서 별도 폼 컨트롤러 DOM 을 렌더하지 않아야 한다 (상하 여백 설정 시)", async ({ page }) => {
test("FormBlock 은 프리뷰에서 폼 컨트롤러 DOM 을 렌더야 한다 (상하 여백 설정 시)", async ({ page }) => {
await page.goto("/editor");
await page.getByRole("button", { name: "폼 컨트롤러" }).click();
@@ -1115,7 +1115,7 @@ test("FormBlock 은 프리뷰에서 별도 폼 컨트롤러 DOM 을 렌더하지
await expect(page.getByRole("heading", { name: "Page Preview" })).toBeVisible();
const formLocator = page.getByTestId("preview-form-controller");
await expect(formLocator).toHaveCount(0);
await expect(formLocator).toHaveCount(1);
});
test("폼 라디오 줄간격 px 입력이 프리뷰에서도 em 스케일로 반영되어야 한다", async ({ page }) => {
@@ -1584,8 +1584,8 @@ test("폼 컨트롤러에 매핑한 폼 요소와 버튼이 프리뷰에서 함
const input = page.getByRole("textbox").first();
await expect(input).toBeVisible();
// 프리뷰 정책: FormBlock 컨트롤러는 프리뷰에서 실제 `<form>` DOM 을 렌더하지 않는다.
await expect(page.getByTestId("preview-form-controller")).toHaveCount(0);
const forms = page.getByTestId("preview-form-controller");
await expect(forms).toHaveCount(1);
await expect(page.getByText("성공적으로 전송되었습니다.")).toHaveCount(0);
});
@@ -1647,9 +1647,8 @@ test("여러 폼 블록과 여러 버튼이 있을 때 각 폼이 독립적으
const firstInput = textboxes.nth(0);
const secondInput = textboxes.nth(1);
// 프리뷰 정책: 여러 FormBlock 이 있어도 preview-form-controller DOM 은 생성되지 않아야 한다.
const controllers = page.getByTestId("preview-form-controller");
await expect(controllers).toHaveCount(0);
await expect(controllers).toHaveCount(2);
const successMessages = page.getByText("성공적으로 전송되었습니다.");
await expect(successMessages).toHaveCount(0);