i18n 적용
CI / test (push) Failing after 11m12s
CI / e2e (push) Has been cancelled
CI / pr_and_merge (push) Has been cancelled

This commit is contained in:
2025-12-10 15:56:51 +09:00
parent 73e9bc6a1c
commit f71207aeb5
127 changed files with 7346 additions and 2079 deletions
+4 -5
View File
@@ -38,7 +38,7 @@ describe("ColorPickerField - 테마", () => {
/>,
);
const [label] = screen.getAllByText("색상 팔레트");
const [label] = screen.getAllByText("Color palette");
const button = label.closest("button") as HTMLButtonElement | null;
expect(button).not.toBeNull();
@@ -65,14 +65,13 @@ describe("ColorPickerField - 테마", () => {
);
// 드롭다운을 연다
const [label] = screen.getAllByText("색상 팔레트");
const [label] = screen.getAllByText("Color palette");
const toggleButton = label.closest("button") as HTMLButtonElement | null;
expect(toggleButton).not.toBeNull();
fireEvent.click(toggleButton!);
// 팔레트 첫 항목 버튼을 찾는다 (TEXT_COLOR_PALETTE[0] 라벨과 동기화)
const firstItem = TEXT_COLOR_PALETTE[0];
const itemButton = screen.getByRole("button", { name: firstItem.label }) as HTMLButtonElement;
// 팔레트 첫 항목 버튼(기본값: None)을 role/name 기준으로 찾는다
const itemButton = screen.getByRole("button", { name: "None" }) as HTMLButtonElement;
const className = itemButton.getAttribute("class") ?? "";
// 라이트 모드: 흰 배경 + 어두운 텍스트