Implement about page

This commit is contained in:
adilallo committed 2026-05-13 23:08:36 -06:00
1 parent d2dfa099a2
commit b6b9b63608
69 files changed
+1834 -28

No files matched your search

@@ -0,0 +1,22 @@
import userEvent from "@testing-library/user-event";
import { render, screen } from "@testing-library/react";
import { describe, it, expect } from "vitest";
import Accordion from "../../../app/components/layout/Accordion";
describe("Accordion", () => {
it("toggles panel content", async () => {
const user = userEvent.setup();
render(
<Accordion title="Question" defaultOpen={false}>
Answer copy
</Accordion>,
);
expect(screen.queryByText("Answer copy")).not.toBeInTheDocument();
await user.click(screen.getByRole("button", { name: "Question" }));
expect(screen.getByText("Answer copy")).toBeInTheDocument();
});
});