Skip to content

Commit 336f927

Browse files
test(e2e): fix Getting started link selector to handle multiple matches
1 parent 97d546d commit 336f927

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docs/e2e/homepage.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ test.describe("Homepage", () => {
2424
test("navigates to getting started guide", async ({ page }) => {
2525
await page.goto("/");
2626

27-
// Find and click the Getting started link
28-
const guideLink = page.getByRole("link", { name: /getting started/i });
27+
// Find and click the Getting started link (using first to handle multiple matches)
28+
const guideLink = page.getByRole("link", { name: /getting started/i }).first();
2929
await guideLink.click();
3030

3131
// Verify navigation occurred

0 commit comments

Comments
 (0)