+ {post.frontmatter.title}
+ {post.frontmatter.description}
+ {updatedLabel ? (
+
+ {post.frontmatter.author}
+ {updatedLabel}
+
+ ) : null}
+
+ ),
+}));
+
+async function renderKitPage() {
+ const page = messages.pages.kit;
+ const ui = await LegalDocumentPage({
+ slug: "kit",
+ path: legalPathForSlug("kit"),
+ page,
+ });
+ return render(ui);
+}
+
+describe("kit page", () => {
+ test("covers the five meetings, the facilitator guide, and office hours", async () => {
+ await renderKitPage();
+ const page = messages.pages.kit;
+
+ expect(screen.getByTestId("content-banner")).toHaveAttribute(
+ "data-variant",
+ "guide",
+ );
+ expect(
+ screen.getByRole("heading", { level: 1, name: page.banner.title }),
+ ).toBeInTheDocument();
+ expect(screen.getByText(page.banner.description)).toBeInTheDocument();
+ expect(
+ screen.getByRole("heading", { level: 2, name: "What is in it" }),
+ ).toBeInTheDocument();
+ expect(
+ screen.getByRole("heading", { level: 2, name: "How the five meetings run" }),
+ ).toBeInTheDocument();
+ expect(
+ screen.getByRole("heading", { level: 2, name: "Office hours" }),
+ ).toBeInTheDocument();
+ expect(
+ screen.getByRole("link", { name: "Download the facilitator guide" }),
+ ).toHaveAttribute(
+ "href",
+ "https://colorado-mutual-aid.notion.site/Workshop-facilitator-guide-40fb9b9e2d3b81b683c0ca15de007f2a",
+ );
+ expect(screen.getByRole("link", { name: "Open the board" })).toHaveAttribute(
+ "href",
+ "https://www.figma.com/board/gnQ55HnX7EtOV9nwlZcW1V?node-id=32-80",
+ );
+ expect(screen.getByRole("link", { name: "Create rule" })).toHaveAttribute(
+ "href",
+ "/create/informational",
+ );
+ expect(screen.getByRole("link", { name: "Ask an organizer" })).toHaveAttribute(
+ "href",
+ "/#ask-organizer",
+ );
+ expect(
+ screen.getByRole("link", { name: "Talk to a facilitator" }),
+ ).toHaveAttribute("href", "/workshops#workshop-signup");
+ expect(screen.getByText(/22 February 2027/)).toBeInTheDocument();
+ });
+});
diff --git a/tests/unit/legalSyntheticPost.test.ts b/tests/unit/legalSyntheticPost.test.ts
index f7f7391..87a0036 100644
--- a/tests/unit/legalSyntheticPost.test.ts
+++ b/tests/unit/legalSyntheticPost.test.ts
@@ -9,6 +9,7 @@ describe("legalSyntheticPost", () => {
expect(legalPathForSlug("privacy")).toBe("/privacy");
expect(legalPathForSlug("terms")).toBe("/terms");
expect(legalPathForSlug("cookies")).toBe("/cookies");
+ expect(legalPathForSlug("kit")).toBe("/kit");
});
it("builds a guide-shaped post from page messages", () => {
diff --git a/tests/unit/publicSitemap.test.ts b/tests/unit/publicSitemap.test.ts
index de23c5d..21b254b 100644
--- a/tests/unit/publicSitemap.test.ts
+++ b/tests/unit/publicSitemap.test.ts
@@ -16,6 +16,7 @@ describe("buildPublicSitemap", () => {
expect(urls).toContain(sitemapUrl("/blog"));
expect(urls).not.toContain(sitemapUrl("/use-cases"));
expect(urls).toContain(sitemapUrl("/how-it-works"));
+ expect(urls).toContain(sitemapUrl("/kit"));
expect(urls).toContain(sitemapUrl("/privacy"));
expect(urls).toContain(sitemapUrl("/terms"));
expect(urls).toContain(sitemapUrl("/cookies"));
@@ -36,7 +37,6 @@ describe("buildPublicSitemap", () => {
expect(urls.some((url) => url.includes("/create"))).toBe(false);
expect(urls.some((url) => url.includes("/monitor"))).toBe(false);
expect(urls.some((url) => url.includes("/rule-counts"))).toBe(false);
- expect(urls.some((url) => url.includes("/kit"))).toBe(false);
expect(urls.some((url) => url.includes("/api/"))).toBe(false);
});