Skip to content

Commit 936dd94

Browse files
committed
test: fix other selectors
1 parent 831ef74 commit 936dd94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/create-command.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test.describe('Create Command', () => {
1212
await expect(createCommandSection.locator('code')).toContainText(/create vite/i)
1313

1414
// Link to create-vite should be present (uses sr-only text, so check attachment not visibility)
15-
await expect(page.locator('a[href="/create-vite"]')).toBeAttached()
15+
await expect(page.locator('a[href="/create-vite"]').first()).toBeAttached()
1616
})
1717

1818
test('/next - should show create command (shared maintainer, same repo)', async ({
@@ -28,7 +28,7 @@ test.describe('Create Command', () => {
2828
await expect(createCommandSection.locator('code')).toContainText(/create next-app/i)
2929

3030
// Link to create-next-app should be present (uses sr-only text, so check attachment not visibility)
31-
await expect(page.locator('a[href="/create-next-app"]')).toBeAttached()
31+
await expect(page.locator('a[href="/create-next-app"]').first()).toBeAttached()
3232
})
3333

3434
test('/nuxt - should show create command (same maintainer, same org)', async ({

0 commit comments

Comments
 (0)