test(LoginForm): clarify test case names
This commit is contained in:
@@ -52,7 +52,7 @@ describe("LoginForm", () => {
|
|||||||
expect(loginButton).toBeEnabled();
|
expect(loginButton).toBeEnabled();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("updates email when user types", async () => {
|
it("updates email value in auth store when user types", async () => {
|
||||||
render(<LoginForm />);
|
render(<LoginForm />);
|
||||||
const emailInput = screen.getByRole("textbox", { name: /email/i });
|
const emailInput = screen.getByRole("textbox", { name: /email/i });
|
||||||
await userEvent.type(emailInput, MOCK_EMAIL);
|
await userEvent.type(emailInput, MOCK_EMAIL);
|
||||||
@@ -61,7 +61,7 @@ describe("LoginForm", () => {
|
|||||||
expect(storeEmailValue).toBe(MOCK_EMAIL);
|
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 />);
|
render(<LoginForm />);
|
||||||
const passwordInput = screen.getByLabelText(/password/i);
|
const passwordInput = screen.getByLabelText(/password/i);
|
||||||
await userEvent.type(passwordInput, MOCK_PASSWORD);
|
await userEvent.type(passwordInput, MOCK_PASSWORD);
|
||||||
|
|||||||
Reference in New Issue
Block a user