Skip to content

Commit 8862b9a

Browse files
committed
test: fix trailing slash in tests
1 parent 1c2f241 commit 8862b9a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/e2e/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="/package/create-vite"]').first()).toBeAttached()
15+
await expect(page.locator('a[href="/package/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="/package/create-next-app"]').first()).toBeAttached()
31+
await expect(page.locator('a[href="/package/create-next-app/"]').first()).toBeAttached()
3232
})
3333

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

test/e2e/docs.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test.describe('API Documentation Pages', () => {
8181
await packageLink.click()
8282

8383
// Should navigate to package page (URL ends with /ufo)
84-
await expect(page).toHaveURL(/\/package\/ufo$/)
84+
await expect(page).toHaveURL(/\/package\/ufo\/$/)
8585
})
8686

8787
test('docs page handles package gracefully when types unavailable', async ({ page, goto }) => {

0 commit comments

Comments
 (0)