feature/login-and-register-forms #2

Merged
ilia merged 12 commits from feature/login-and-register-forms into main 2026-03-24 18:00:42 +00:00
Showing only changes of commit 576665f32b - Show all commits

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);