fix(demo): point banner "Self-host SnapOtter" link at the docs guide (#466)

The demo banner link now opens docs.snapotter.com/guide/getting-started in a new tab instead of the GitHub repo.
This commit is contained in:
SnapOtter
2026-07-08 00:22:08 +08:00
committed by GitHub
parent f4da5ae3c7
commit 463ccff5cb
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -18,6 +18,14 @@ test("demo boots straight into the dashboard with no login screen", async ({ pag
await expect(page.getByText(/live demo/i).first()).toBeVisible();
await expect(page.getByText(/sample data/i).first()).toBeVisible();
// "Self-host SnapOtter" points at the getting-started guide, opening a new tab.
const selfHostLink = page.getByRole("link", { name: "Self-host SnapOtter" });
await expect(selfHostLink).toHaveAttribute(
"href",
"https://docs.snapotter.com/guide/getting-started",
);
await expect(selfHostLink).toHaveAttribute("target", "_blank");
const theme = await page.evaluate(() => {
const bannerLink = Array.from(document.querySelectorAll("a")).find((link) =>
link.textContent?.includes("Self-host SnapOtter"),