test: don't register promise in external nav (#27468)

This commit is contained in:
Daniel Roe 2024-06-06 19:04:57 +01:00 committed by GitHub
parent 06f91349f7
commit f3c916f4a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -259,10 +259,7 @@ describe('basic browser', () => {
// New page for redirecting to external link.
const page = await browser.page(url('/'))
await Promise.all([
page.nuxt.navigate('/redirect-external', false),
page.waitForNavigation()
])
await page.evaluate($nuxt => $nuxt.$router.push('/redirect-external'), page.$nuxt)
await page.waitForFunction(() => window.location.href === 'https://example.com/test/')
await page.close()
})