Files
SnapOtter/tests/e2e-docs/homepage.spec.ts
T
SnapOtterandGitHub 19b515dc5f chore: use "200+ tools" for the tool-count claim across public surfaces (#364)
* fix(landing): correct PDF tool count to 28 in alternatives copy

The pdf section has 28 tools (section.test.ts asserts bySection('pdf')=28). PR #363 corrected the docs breakdown but the alternatives pages still said 40 PDF tools (the document-modality count, not the pdf section) with 200 for the rest. Update to 28 PDF tools and 212 for the non-PDF remainder.

* chore: use "200+ tools" for the tool-count claim across public surfaces

Replaces the exact '240 tools' count (which drifts as tools are added) with the stable '200+ tools' on README, the Docker Hub overview, landing pages, the docs site (meta, homepage, search), the API self-description, the demo OG tag, llms.txt, package.json, the branding readme, and the en/nl app strings. Per-modality breakdown tables stay exact. Leaves the architecture doc's technical 'tool routes' figure, an internal vitest comment, and a QA report line unchanged. Updates the two tests that assert the docs strings.
2026-06-28 21:49:14 +08:00

42 lines
1.8 KiB
TypeScript

import { expect, test } from "@playwright/test";
test.describe("docs homepage (Two Doors)", () => {
test.beforeEach(async ({ page }) => {
await page.goto("/");
});
test("title contains SnapOtter", async ({ page }) => {
await expect(page).toHaveTitle(/SnapOtter/);
});
test("hero renders eyebrow, name, and value prop", async ({ page }) => {
await expect(page.getByRole("heading", { name: "SnapOtter Documentation" })).toBeVisible();
await expect(page.getByText("Self-hosted", { exact: false }).first()).toBeVisible();
await expect(
page.getByText("running entirely on your hardware", { exact: false }),
).toBeVisible();
});
test("hero shows the quick-start docker command", async ({ page }) => {
await expect(page.getByText("docker run", { exact: false }).first()).toBeVisible();
});
test("renders both audience doors and a sample link in each", async ({ page }) => {
await expect(page.getByRole("heading", { name: "Self-hosting" })).toBeVisible();
await expect(page.getByRole("heading", { name: "Enterprise" })).toBeVisible();
await expect(page.getByRole("link", { name: "Quick start" })).toBeVisible();
await expect(page.getByRole("link", { name: "SCIM provisioning" })).toBeVisible();
});
test("renders the modality strip with counts", async ({ page }) => {
await expect(page.getByText("200+ tools across 5 modalities")).toBeVisible();
await expect(page.getByRole("link", { name: /Image/ })).toBeVisible();
});
test("nav links work", async ({ page }) => {
await expect(page.getByRole("link", { name: "Guide" }).first()).toBeVisible();
await page.getByRole("link", { name: "Guide" }).first().click();
await expect(page.getByRole("heading", { name: "Getting Started" })).toBeVisible();
});
});