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:
@@ -41,6 +41,7 @@ test.describe("Privacy Page", () => {
|
||||
|
||||
test("renders all section headings", async ({ page }) => {
|
||||
const headings = [
|
||||
"Data Controller",
|
||||
"Overview",
|
||||
"Website (snapotter.com)",
|
||||
"Self-Hosted Software",
|
||||
@@ -72,6 +73,7 @@ test.describe("Terms Page", () => {
|
||||
|
||||
test("renders all section headings", async ({ page }) => {
|
||||
const headings = [
|
||||
"Who We Are",
|
||||
"Overview",
|
||||
"Software License",
|
||||
"Website Use",
|
||||
@@ -92,16 +94,16 @@ test.describe("Terms Page", () => {
|
||||
});
|
||||
|
||||
test.describe("Cross-Page Navigation", () => {
|
||||
test("footer Privacy Policy link navigates to /privacy", async ({ page }) => {
|
||||
test("footer Privacy link navigates to /privacy", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
await page.getByRole("link", { name: "Privacy Policy" }).click();
|
||||
await page.locator("footer").getByRole("link", { name: "Privacy" }).click();
|
||||
await expect(page).toHaveURL("/privacy");
|
||||
await expect(page.getByText("Privacy Policy").first()).toBeVisible();
|
||||
});
|
||||
|
||||
test("footer Terms link navigates to /terms", async ({ page }) => {
|
||||
await page.goto("/");
|
||||
await page.getByRole("link", { name: "Terms and Conditions" }).click();
|
||||
await page.locator("footer").getByRole("link", { name: "Terms" }).click();
|
||||
await expect(page).toHaveURL("/terms");
|
||||
await expect(page.getByText("Terms and Conditions").first()).toBeVisible();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user