Skip to content

Commit 97d546d

Browse files
test(e2e): update documentation page tests to use getting-started guide
1 parent 10bdb01 commit 97d546d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/docs/e2e/documentation-pages.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { expect, test } from "@playwright/test";
22

33
test.describe("Documentation Pages", () => {
4-
test("has sidebar navigation on example guide page", async ({ page }) => {
4+
test("has sidebar navigation on getting started guide page", async ({ page }) => {
55
// Set desktop viewport to ensure sidebar is visible (hidden on mobile)
66
await page.setViewportSize({ width: 1280, height: 720 });
7-
await page.goto("/guides/example/");
7+
await page.goto("/guides/getting-started/");
88

99
// Verify sidebar navigation exists by checking for navigation items within it
1010
const sidebar = page.locator('nav[aria-label="Main"]');
@@ -15,18 +15,18 @@ test.describe("Documentation Pages", () => {
1515
test("sidebar contains configured navigation items", async ({ page }) => {
1616
// Set desktop viewport to ensure sidebar is visible (hidden on mobile)
1717
await page.setViewportSize({ width: 1280, height: 720 });
18-
await page.goto("/guides/example/");
18+
await page.goto("/guides/getting-started/");
1919

2020
// Verify sidebar contains the Guides section
2121
const sidebar = page.locator('nav[aria-label="Main"]');
2222
await expect(sidebar.getByText("Guides")).toBeVisible();
23-
await expect(sidebar.getByText("Example Guide")).toBeVisible();
23+
await expect(sidebar.getByText("Getting started")).toBeVisible();
2424
});
2525

2626
test("has table of contents on desktop", async ({ page }) => {
2727
// Set desktop viewport for right sidebar TOC
2828
await page.setViewportSize({ width: 1280, height: 720 });
29-
await page.goto("/guides/example/");
29+
await page.goto("/guides/getting-started/");
3030

3131
// Verify right sidebar with table of contents exists
3232
const toc = page.getByRole("navigation", { name: /on this page/i });

0 commit comments

Comments
 (0)