mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
test: don't register promise in external nav (#27468)
This commit is contained in:
parent
06f91349f7
commit
f3c916f4a6
@ -259,10 +259,7 @@ describe('basic browser', () => {
|
|||||||
// New page for redirecting to external link.
|
// New page for redirecting to external link.
|
||||||
const page = await browser.page(url('/'))
|
const page = await browser.page(url('/'))
|
||||||
|
|
||||||
await Promise.all([
|
await page.evaluate($nuxt => $nuxt.$router.push('/redirect-external'), page.$nuxt)
|
||||||
page.nuxt.navigate('/redirect-external', false),
|
|
||||||
page.waitForNavigation()
|
|
||||||
])
|
|
||||||
await page.waitForFunction(() => window.location.href === 'https://example.com/test/')
|
await page.waitForFunction(() => window.location.href === 'https://example.com/test/')
|
||||||
await page.close()
|
await page.close()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user