feat(landing): restore Developers nav link, swap out Features anchor (#474)

Restores Developers to the top nav by swapping out the Features homepage anchor. Nav is now Enterprise, Pricing, Alternatives, Developers, Docs, Talk to a human. Updated two e2e assertions that checked for a Features nav link. Verified visually at 1120/1280px and 62/62 landing e2e.
This commit is contained in:
SnapOtter
2026-07-10 16:00:56 +08:00
committed by GitHub
parent a731c3d1fe
commit a08afbc80a
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -6,10 +6,10 @@ import { formatCompact, getStarCount } from "@/lib/stats";
const starCount = formatCompact(await getStarCount());
const links = [
{ label: "Features", href: "/#features" },
{ label: "Enterprise", href: "/#enterprise" },
{ label: "Pricing", href: "/#pricing" },
{ label: "Alternatives", href: "/alternatives" },
{ label: "Developers", href: "/self-hosted/file-conversion-api" },
{ label: "Docs", href: "https://docs.snapotter.com", external: true },
{ label: "Talk to a human", href: "/contact" },
];
+8 -1
View File
@@ -11,7 +11,14 @@ test.describe("Landing Homepage", () => {
test("navbar renders brand and navigation links", async ({ page }) => {
await expect(page.getByText("SnapOtter").first()).toBeVisible();
for (const name of ["Features", "Enterprise", "Pricing", "Docs", "Talk to a human"]) {
for (const name of [
"Enterprise",
"Pricing",
"Alternatives",
"Developers",
"Docs",
"Talk to a human",
]) {
await expect(page.getByRole("link", { name }).first()).toBeVisible();
}
});
+1 -1
View File
@@ -43,7 +43,7 @@ test.describe("Mobile Navigation", () => {
await page.goto("/");
const toggle = page.getByLabel("Toggle menu");
await toggle.click();
await expect(page.getByRole("link", { name: "Features" }).last()).toBeVisible();
await expect(page.getByRole("link", { name: "Developers" }).last()).toBeVisible();
await expect(page.getByRole("link", { name: "Enterprise" }).last()).toBeVisible();
await expect(page.getByRole("link", { name: "Pricing" }).last()).toBeVisible();
await expect(page.getByRole("link", { name: "Docs" }).last()).toBeVisible();