docs: fix regression in navigation (#2047)

This commit is contained in:
Marvin Hagemeister
2023-11-16 10:38:13 +01:00
committed by GitHub
parent 93c17b7184
commit 7578e50ee3
4 changed files with 48 additions and 36 deletions
+12
View File
@@ -0,0 +1,12 @@
import { waitForText, withPageName } from "$fresh/tests/test_utils.ts";
Deno.test("www - docs navigation", async () => {
await withPageName("./www/main.ts", async (page, address) => {
await page.goto(`${address}`, { waitUntil: "networkidle2" });
await page.click(`a[href="/docs"]`);
await waitForText(page, "h1", "Introduction");
await page.click(`a[href="/docs/getting-started/create-a-project"]`);
await waitForText(page, "h1", "Create a project");
});
});