테스트 오류 수정
This commit is contained in:
@@ -70,8 +70,9 @@ describe("ColorPickerField - 테마", () => {
|
||||
expect(toggleButton).not.toBeNull();
|
||||
fireEvent.click(toggleButton!);
|
||||
|
||||
// 팔레트 첫 항목("기본") 버튼을 찾는다
|
||||
const itemButton = screen.getByRole("button", { name: "기본" }) as HTMLButtonElement;
|
||||
// 팔레트 첫 항목 버튼을 찾는다 (TEXT_COLOR_PALETTE[0] 라벨과 동기화)
|
||||
const firstItem = TEXT_COLOR_PALETTE[0];
|
||||
const itemButton = screen.getByRole("button", { name: firstItem.label }) as HTMLButtonElement;
|
||||
const className = itemButton.getAttribute("class") ?? "";
|
||||
|
||||
// 라이트 모드: 흰 배경 + 어두운 텍스트
|
||||
|
||||
Reference in New Issue
Block a user