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
+8 -8
View File
@@ -103,10 +103,10 @@ vi.mock("next/navigation", () => {
});
function openJsonModal() {
const menuButton = screen.getByText("메뉴");
const menuButton = screen.getByText("Menu");
fireEvent.click(menuButton);
const jsonMenuItem = screen.getByText("JSON 내보내기/불러오기");
const jsonMenuItem = screen.getByText("JSON export / import");
fireEvent.click(jsonMenuItem);
const modalTitle = screen.getByText("JSON Export / Import");
@@ -120,13 +120,13 @@ describe("EditorPage - JSON 내보내기/불러오기", () => {
const jsonModal = openJsonModal();
const exportLabel = within(jsonModal).getByText("에디터 상태 JSON").closest("label") as HTMLElement;
const exportLabel = within(jsonModal).getByText("Editor state JSON").closest("label") as HTMLElement;
const exportTextarea = within(exportLabel).getByRole("textbox") as HTMLTextAreaElement;
// 초기에는 비어 있어야 한다.
expect(exportTextarea.value).toBe("");
const exportButton = within(jsonModal).getByText("JSON 내보내기");
const exportButton = within(jsonModal).getByText("Export JSON");
fireEvent.click(exportButton);
const value = exportTextarea.value;
@@ -143,7 +143,7 @@ describe("EditorPage - JSON 내보내기/불러오기", () => {
const jsonModal = openJsonModal();
const importLabel = within(jsonModal).getByText("JSON에서 불러오기").closest("label") as HTMLElement;
const importLabel = within(jsonModal).getByText("Import from JSON").closest("label") as HTMLElement;
const importTextarea = within(importLabel).getByRole("textbox") as HTMLTextAreaElement;
const importedBlocks: Block[] = [
@@ -175,7 +175,7 @@ describe("EditorPage - JSON 내보내기/불러오기", () => {
mockState.replaceBlocks.mockReset();
mockState.updateProjectConfig.mockReset();
const applyButton = within(importLabel).getByText("JSON 적용하기");
const applyButton = within(importLabel).getByText("Apply JSON");
fireEvent.click(applyButton);
expect(mockState.replaceBlocks).toHaveBeenCalledTimes(1);
@@ -190,7 +190,7 @@ describe("EditorPage - JSON 내보내기/불러오기", () => {
const jsonModal = openJsonModal();
const importLabel = within(jsonModal).getByText("JSON에서 불러오기").closest("label") as HTMLElement;
const importLabel = within(jsonModal).getByText("Import from JSON").closest("label") as HTMLElement;
const importTextarea = within(importLabel).getByRole("textbox") as HTMLTextAreaElement;
fireEvent.change(importTextarea, { target: { value: "{ this-is: not-valid-json" } });
@@ -198,7 +198,7 @@ describe("EditorPage - JSON 내보내기/불러오기", () => {
mockState.replaceBlocks.mockReset();
mockState.updateProjectConfig.mockReset();
const applyButton = within(importLabel).getByText("JSON 적용하기");
const applyButton = within(importLabel).getByText("Apply JSON");
fireEvent.click(applyButton);
expect(mockState.replaceBlocks).not.toHaveBeenCalled();