blob: e5dee6e442605fe3e3f84c00e123858670e60896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { describe, it } from "vitest";
import { render, screen } from "@/tests";
import Authentication from "./Authentication";
describe("Authentication", () => {
it("should render without crash", () => {
render(<Authentication></Authentication>);
expect(screen.getByPlaceholderText("Username")).toBeDefined();
expect(screen.getByPlaceholderText("Password")).toBeDefined();
expect(screen.getByRole("button", { name: "Login" })).toBeDefined();
});
});
|