mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 03:48:36 -05:00
test: bump pwaPlugin test wait for CI
This commit is contained in:
@@ -58,7 +58,7 @@ test('pwa', async () => {
|
||||
const launched = await launchPuppeteer(`http://localhost:${port}/`)
|
||||
browser = launched.browser
|
||||
|
||||
await new Promise(r => setTimeout(r, 500))
|
||||
await new Promise(r => setTimeout(r, process.env.CI ? 1000 : 300))
|
||||
const logs = launched.logs
|
||||
expect(logs.some(msg => msg.match(/Content has been cached for offline use/))).toBe(true)
|
||||
expect(logs.some(msg => msg.match(/App is being served from cache by a service worker/))).toBe(true)
|
||||
|
||||
Reference in New Issue
Block a user