test(LoginForm): clarify test case names

This commit is contained in:
Ilia Mashkov
2026-03-24 20:42:37 +03:00
parent 4d854d08a3
commit 576665f32b

View File

@@ -52,7 +52,7 @@ describe("LoginForm", () => {
expect(loginButton).toBeEnabled();
});
it("updates email when user types", async () => {
it("updates email value in auth store when user types", async () => {
render(<LoginForm />);
const emailInput = screen.getByRole("textbox", { name: /email/i });
await userEvent.type(emailInput, MOCK_EMAIL);
@@ -61,7 +61,7 @@ describe("LoginForm", () => {
expect(storeEmailValue).toBe(MOCK_EMAIL);
});
it("updates password when user types", async () => {
it("updates password value in auth store when user types", async () => {
render(<LoginForm />);
const passwordInput = screen.getByLabelText(/password/i);
await userEvent.type(passwordInput, MOCK_PASSWORD);