Skip to content

Commit d9df4fb

Browse files
committed
feat: new routing schema - fixed missed tests
1 parent b179ff4 commit d9df4fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/docs.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ test.describe('API Documentation Pages', () => {
7070
await goto('/package-docs/ufo', { waitUntil: 'networkidle' })
7171

7272
// Should redirect to include version
73-
await expect(page).toHaveURL(/\/docs\/ufo\/v\//)
73+
await expect(page).toHaveURL(/\/package-docs\/ufo\/v\//)
7474
})
7575

7676
test('package link in header navigates to package page', async ({ page, goto }) => {
@@ -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(/\/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)