aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/pages/SubmissionsPage.test.tsx
blob: f01f4c925e292da465f1d386c842be21057cd222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * @vitest-environment jsdom
 */
import { cleanup, render, screen } from "@testing-library/react";
import { afterEach, describe, expect, test } from "vitest";
import SubmissionsPage from "./SubmissionsPage";

afterEach(() => {
	cleanup();
});

describe("SubmissionsPage", () => {
	test("shows loading state initially", () => {
		render(<SubmissionsPage gameId="1" />);
		expect(screen.getByText("Loading...")).toBeDefined();
	});
});