Skip to content

Commit 5694bc5

Browse files
committed
test: ensure to have exact package url /package/nuxt
1 parent 23393ae commit 5694bc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/search-feeling-lucky.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expect, test } from './test-utils'
33
test.describe('Search "I\'m Feeling Lucky" Redirect', () => {
44
test('direct URL access with "!" should redirect to package', async ({ page, goto }) => {
55
await goto('/search?q=nuxt!', { waitUntil: 'hydration' })
6-
await expect(page).toHaveURL(/\/package\/nuxt/, { timeout: 15000 })
6+
await expect(page).toHaveURL(/\/package\/nuxt$/, { timeout: 15000 })
77
})
88

99
test('normal search query (without "!") should not redirect', async ({ page, goto }) => {

0 commit comments

Comments
 (0)