import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it, vi } from "vitest";
import { AuthScreen } from "../../auth-screen";
import { AuthBackground } from "../auth-background";
import { AuthEmailPanel } from "../auth-email-panel";
import { AuthErrorMessage } from "../auth-error-message";
import { AuthFacebookPanel } from "../auth-facebook-panel";
import { AuthLegalText } from "../auth-legal-text";
import { AuthPanel } from "../auth-panel";
import { AuthPrimaryButton } from "../auth-primary-button";
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(),
useAuthState: () => ({
authPanelMode: "facebook",
isLoading: false,
errorMessage: null,
loginStatus: "notLoggedIn",
hasInitialized: true,
}),
}));
vi.mock("next/navigation", () => ({
useRouter: () => ({ back: vi.fn(), replace: vi.fn() }),
}));
describe("auth Tailwind components", () => {
it("renders outside CharacterProvider", () => {
expect(() => renderToStaticMarkup(