We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bca718 commit 351d10fCopy full SHA for 351d10f
packages/docs/e2e/homepage.spec.ts
@@ -15,8 +15,8 @@ test.describe("Homepage", () => {
15
test("has accessible links", async ({ page }) => {
16
await page.goto("/");
17
18
- // Verify GitHub link exists and is accessible
19
- const githubLink = page.getByRole("link", { name: /github/i });
+ // Verify GitHub link exists and is accessible (using first to handle multiple matches)
+ const githubLink = page.getByRole("link", { name: /github/i }).first();
20
await expect(githubLink).toBeVisible();
21
await expect(githubLink).toHaveAttribute("href", /.+/);
22
});
0 commit comments