forked from Lilly-Protocol/lily-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroute-groups.smoke.test.tsx
More file actions
24 lines (20 loc) · 981 Bytes
/
Copy pathroute-groups.smoke.test.tsx
File metadata and controls
24 lines (20 loc) · 981 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vitest";
// Import layouts from each route group to assert they render without error
import SupportLayout from "./(support)/layout";
import AuthLayout from "./(auth)/layout";
import MarketingLayout from "./(marketing)/layout";
describe("Route Groups Smoke Test", () => {
it("renders (support) layout without crashing", () => {
render(<SupportLayout><div>Support Content</div></SupportLayout>);
expect(screen.getByText("Support Content")).toBeInTheDocument();
});
it("renders (auth) layout without crashing", () => {
render(<AuthLayout><div>Auth Content</div></AuthLayout>);
expect(screen.getByText("Auth Content")).toBeInTheDocument();
});
it("renders (marketing) layout without crashing", () => {
render(<MarketingLayout><div>Marketing Content</div></MarketingLayout>);
expect(screen.getByText("Marketing Content")).toBeInTheDocument();
});
});