mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat(landing): migrate from Next.js to Astro 5
Zero client JS, 165 static pages, self-hosted fonts, Otter Orange design system. Includes tool SEO data for all 157 tools, enterprise page, and updated e2e landing tests.
This commit is contained in:
@@ -7,6 +7,7 @@ test.describe("Heading Hierarchy", () => {
|
||||
{ path: "/faq", name: "FAQ" },
|
||||
{ path: "/privacy", name: "Privacy" },
|
||||
{ path: "/terms", name: "Terms" },
|
||||
{ path: "/enterprise", name: "Enterprise" },
|
||||
];
|
||||
|
||||
for (const { path, name } of pages) {
|
||||
@@ -48,6 +49,15 @@ test.describe("Landmark Elements", () => {
|
||||
});
|
||||
});
|
||||
|
||||
test.describe("Skip Link", () => {
|
||||
test("skip link targets main content", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
const skipLink = page.locator('a.skip-link[href="#main"]');
|
||||
await expect(skipLink).toHaveAttribute("href", "#main");
|
||||
await expect(page.locator("main#main")).toBeAttached();
|
||||
});
|
||||
});
|
||||
|
||||
test.describe("Meta Tags", () => {
|
||||
test("homepage has meta description", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
|
||||
Reference in New Issue
Block a user