shoc-frontend-new/src/test/components/common/placeholder-page.test.tsx

14 lines
583 B
TypeScript

import { screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
import { PlaceholderPage } from "@/components/common/placeholder-page";
import { renderWithProviders } from "@/test/test-utils";
describe("PlaceholderPage", () => {
it("renders the AAP under-construction copy", () => {
renderWithProviders(<PlaceholderPage title="Services" />, { withAuth: false });
expect(screen.getByRole("heading", { name: "Services" })).toBeInTheDocument();
expect(screen.getByText("This page is under construction.")).toBeInTheDocument();
});
});