mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user