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.
/package/nuxt
1 parent 23393ae commit 5694bc5Copy full SHA for 5694bc5
test/e2e/search-feeling-lucky.spec.ts
@@ -3,7 +3,7 @@ import { expect, test } from './test-utils'
3
test.describe('Search "I\'m Feeling Lucky" Redirect', () => {
4
test('direct URL access with "!" should redirect to package', async ({ page, goto }) => {
5
await goto('/search?q=nuxt!', { waitUntil: 'hydration' })
6
- await expect(page).toHaveURL(/\/package\/nuxt/, { timeout: 15000 })
+ await expect(page).toHaveURL(/\/package\/nuxt$/, { timeout: 15000 })
7
})
8
9
test('normal search query (without "!") should not redirect', async ({ page, goto }) => {
0 commit comments