feature/login-and-register-forms #2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user