diff --git a/e2e/landing.spec.js b/e2e/landing.spec.js index b2be7233..8c51dbab 100644 --- a/e2e/landing.spec.js +++ b/e2e/landing.spec.js @@ -33,11 +33,5 @@ test("landing has dashboard link", async ({ page }) => { test("landing shows footer", async ({ page }) => { await page.goto("/"); - await expect(page.getByRole("contentinfo")).toBeVisible(); -}); - -test("landing has dashboard link", async ({ page }) => { - await page.goto("/"); - - await expect(page.getByRole("link", { name: "Dashboard" })).toBeVisible(); + await expect(page.getByRole("contentinfo").first()).toBeVisible(); }); diff --git a/src/app/dashboard/settings/page.tsx b/src/app/dashboard/settings/page.tsx index e48f6821..950b6291 100644 --- a/src/app/dashboard/settings/page.tsx +++ b/src/app/dashboard/settings/page.tsx @@ -3,10 +3,10 @@ import { Suspense, useEffect, useMemo, useState } from "react"; import { useSession } from "next-auth/react"; import { redirect, useSearchParams } from "next/navigation"; +import Link from "next/link"; import { useHeatmapTheme } from "@/hooks/useHeatmapTheme"; import PrivacySettings from "@/components/PrivacySettings"; import { toast } from "sonner"; -import Link from "next/link"; interface UserSettings { id: string;