import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { AuthLayout } from "./auth-layout";
describe("AuthLayout", () => {
it("renders the Prowler brand directly above the form card", () => {
render(
form content
form content
, ); const content = screen.getByText("form content"); const footer = screen.getByText("footer link"); const card = content.parentElement!; expect(card.contains(footer)).toBe(false); expect( content.compareDocumentPosition(footer) & Node.DOCUMENT_POSITION_FOLLOWING, ).toBeTruthy(); }); });