unit 테스트 수정
This commit is contained in:
@@ -75,7 +75,7 @@ describe("ProjectSubmissionsPage - 폼 제출 내역", () => {
|
||||
expect(url).toBe("/api/projects/test-project/submissions");
|
||||
expect(options).toBeUndefined();
|
||||
|
||||
expect(await screen.findByText("폼 제출 내역")).toBeTruthy();
|
||||
expect(await screen.findByText("All form submissions")).toBeTruthy();
|
||||
expect(screen.getByText("test-project")).toBeTruthy();
|
||||
|
||||
expect(screen.getByText("홍길동")).toBeTruthy();
|
||||
@@ -129,7 +129,7 @@ describe("ProjectSubmissionsPage - 폼 제출 내역", () => {
|
||||
render(<ProjectSubmissionsPage />);
|
||||
|
||||
const errorText = await screen.findByText(
|
||||
"프로젝트를 찾을 수 없거나 접근 권한이 없습니다. 프로젝트 소유자 계정으로 다시 로그인해 주세요.",
|
||||
"An error occurred while loading form submissions. Please try again later.",
|
||||
);
|
||||
|
||||
expect(errorText).toBeTruthy();
|
||||
@@ -149,7 +149,7 @@ describe("ProjectSubmissionsPage - 폼 제출 내역", () => {
|
||||
|
||||
render(<ProjectSubmissionsPage />);
|
||||
|
||||
const backLink = await screen.findByRole("link", { name: "프로젝트 목록" });
|
||||
const backLink = await screen.findByRole("link", { name: "Projects" });
|
||||
expect(backLink).toBeTruthy();
|
||||
expect(backLink.getAttribute("href")).toBe("/projects");
|
||||
});
|
||||
@@ -172,9 +172,9 @@ describe("ProjectSubmissionsPage - 폼 제출 내역", () => {
|
||||
expect(fetchMock).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
const dashboardLink = await screen.findByRole("link", { name: "대시보드" });
|
||||
const projectsLink = await screen.findByRole("link", { name: "프로젝트 목록" });
|
||||
const submissionsLink = await screen.findByRole("link", { name: "전체 제출 내역" });
|
||||
const dashboardLink = await screen.findByRole("link", { name: "Dashboard" });
|
||||
const projectsLink = await screen.findByRole("link", { name: "Projects" });
|
||||
const submissionsLink = await screen.findByRole("link", { name: "All submissions" });
|
||||
|
||||
expect(dashboardLink.getAttribute("href")).toBe("/dashboard");
|
||||
expect(projectsLink.getAttribute("href")).toBe("/projects");
|
||||
@@ -183,7 +183,7 @@ describe("ProjectSubmissionsPage - 폼 제출 내역", () => {
|
||||
const html = document.documentElement;
|
||||
html.classList.remove("dark");
|
||||
|
||||
const themeToggleButton = await screen.findByRole("button", { name: "테마 전환" });
|
||||
const themeToggleButton = await screen.findByRole("button", { name: "Toggle theme" });
|
||||
|
||||
expect(html.classList.contains("dark")).toBe(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user