import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it, vi } from "vitest";
import { AuthBackground } from "../auth-background";
import { AuthErrorMessage } from "../auth-error-message";
import { AuthLegalText } from "../auth-legal-text";
import { AuthSocialButton } from "../auth-social-button";
import { AuthTextField } from "../auth-text-field";
import { EmailLoginForm } from "../email-login-form";
import { EmailRegisterForm } from "../email-register-form";
vi.mock("@/stores/auth/auth-context", () => ({
useAuthDispatch: () => vi.fn(),
}));
describe("auth Tailwind components", () => {
it("renders AuthErrorMessage only when a message is present", () => {
expect(renderToStaticMarkup(