Skip to content

Commit 351d10f

Browse files
test(e2e): fix GitHub link selector to handle multiple matches
1 parent 1bca718 commit 351d10f

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
@@ -15,8 +15,8 @@ test.describe("Homepage", () => {
1515
test("has accessible links", async ({ page }) => {
1616
await page.goto("/");
1717

18-
// Verify GitHub link exists and is accessible
19-
const githubLink = page.getByRole("link", { name: /github/i });
18+
// Verify GitHub link exists and is accessible (using first to handle multiple matches)
19+
const githubLink = page.getByRole("link", { name: /github/i }).first();
2020
await expect(githubLink).toBeVisible();
2121
await expect(githubLink).toHaveAttribute("href", /.+/);
2222
});

0 commit comments

Comments
 (0)