i18n 적용
This commit is contained in:
@@ -114,13 +114,13 @@ describe("EditorPage - 페이지/캔버스 배경", () => {
|
||||
it("프로젝트 저장/불러오기 모달 카드는 라이트/다크 테마에 맞는 카드/인풋 크롬을 사용해야 한다", () => {
|
||||
render(<EditorPage />);
|
||||
|
||||
const menuButton = screen.getByRole("button", { name: /메뉴/ });
|
||||
const menuButton = screen.getByRole("button", { name: /Menu/ });
|
||||
fireEvent.click(menuButton);
|
||||
|
||||
const projectMenuItem = screen.getByRole("button", { name: "프로젝트 저장/불러오기" });
|
||||
const projectMenuItem = screen.getByRole("button", { name: "Save / load project" });
|
||||
fireEvent.click(projectMenuItem);
|
||||
|
||||
const heading = screen.getByText("프로젝트 저장 / 불러오기");
|
||||
const heading = screen.getByText("Save / load project");
|
||||
const headerDiv = heading.closest("div") as HTMLDivElement | null;
|
||||
expect(headerDiv).not.toBeNull();
|
||||
|
||||
@@ -136,7 +136,7 @@ describe("EditorPage - 페이지/캔버스 배경", () => {
|
||||
expect(cardClass).toContain("dark:border-slate-700");
|
||||
|
||||
const titleSpan = Array.from(card!.querySelectorAll("span")).find(
|
||||
(el) => el.textContent === "프로젝트 제목",
|
||||
(el) => el.textContent === "Project title",
|
||||
);
|
||||
expect(titleSpan).not.toBeUndefined();
|
||||
const titleWrapper = (titleSpan as HTMLSpanElement).parentElement as HTMLElement | null;
|
||||
@@ -157,10 +157,10 @@ describe("EditorPage - 페이지/캔버스 배경", () => {
|
||||
it("JSON Export / Import 모달 카드는 라이트/다크 테마에 맞는 카드/textarea 크롬을 사용해야 한다", () => {
|
||||
render(<EditorPage />);
|
||||
|
||||
const menuButton = screen.getByRole("button", { name: /메뉴/ });
|
||||
const menuButton = screen.getByRole("button", { name: /Menu/ });
|
||||
fireEvent.click(menuButton);
|
||||
|
||||
const jsonMenuItem = screen.getByRole("button", { name: "JSON 내보내기/불러오기" });
|
||||
const jsonMenuItem = screen.getByRole("button", { name: "JSON export / import" });
|
||||
fireEvent.click(jsonMenuItem);
|
||||
|
||||
const heading = screen.getByText(/JSON Export \/ Import/);
|
||||
@@ -178,7 +178,7 @@ describe("EditorPage - 페이지/캔버스 배경", () => {
|
||||
expect(cardClass).toContain("dark:text-slate-100");
|
||||
expect(cardClass).toContain("dark:border-slate-700");
|
||||
|
||||
const jsonLabel = screen.getByText("에디터 상태 JSON");
|
||||
const jsonLabel = screen.getByText("Editor state JSON");
|
||||
const jsonWrapper = jsonLabel.parentElement as HTMLElement | null;
|
||||
expect(jsonWrapper).not.toBeNull();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user