i18n 적용
This commit is contained in:
@@ -54,9 +54,9 @@ describe("LoginPage", () => {
|
||||
|
||||
render(<LoginPage />);
|
||||
|
||||
const emailInput = screen.getByLabelText("이메일") as HTMLInputElement;
|
||||
const passwordInput = screen.getByLabelText("비밀번호") as HTMLInputElement;
|
||||
const submitButton = screen.getByRole("button", { name: "로그인" });
|
||||
const emailInput = screen.getByLabelText("Email") as HTMLInputElement;
|
||||
const passwordInput = screen.getByLabelText("Password") as HTMLInputElement;
|
||||
const submitButton = screen.getByRole("button", { name: "Log in" });
|
||||
|
||||
fireEvent.change(emailInput, { target: { value: "user@example.com" } });
|
||||
fireEvent.change(passwordInput, { target: { value: "securePass1" } });
|
||||
@@ -116,9 +116,9 @@ describe("LoginPage", () => {
|
||||
|
||||
render(<LoginPage />);
|
||||
|
||||
const emailInput = screen.getByLabelText("이메일") as HTMLInputElement;
|
||||
const passwordInput = screen.getByLabelText("비밀번호") as HTMLInputElement;
|
||||
const submitButton = screen.getByRole("button", { name: "로그인" });
|
||||
const emailInput = screen.getByLabelText("Email") as HTMLInputElement;
|
||||
const passwordInput = screen.getByLabelText("Password") as HTMLInputElement;
|
||||
const submitButton = screen.getByRole("button", { name: "Log in" });
|
||||
|
||||
fireEvent.change(emailInput, { target: { value: "user@example.com" } });
|
||||
fireEvent.change(passwordInput, { target: { value: "wrongpass" } });
|
||||
@@ -179,8 +179,8 @@ describe("LoginPage", () => {
|
||||
|
||||
render(<LoginPage />);
|
||||
|
||||
const emailInput = screen.getByLabelText("이메일") as HTMLInputElement;
|
||||
const passwordInput = screen.getByLabelText("비밀번호") as HTMLInputElement;
|
||||
const emailInput = screen.getByLabelText("Email") as HTMLInputElement;
|
||||
const passwordInput = screen.getByLabelText("Password") as HTMLInputElement;
|
||||
|
||||
const emailClass = emailInput.className;
|
||||
const passwordClass = passwordInput.className;
|
||||
@@ -215,7 +215,7 @@ describe("LoginPage", () => {
|
||||
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