mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-15 13:40:59 -05:00
test: further bump pwa wait time on CI
This commit is contained in:
@@ -59,7 +59,7 @@ test('pwa', async () => {
|
||||
browser = launched.browser
|
||||
|
||||
// workbox plugin fetches scripts from CDN so it takes a while...
|
||||
await new Promise(r => setTimeout(r, 2000))
|
||||
await new Promise(r => setTimeout(r, process.env.CI ? 5000 : 2000))
|
||||
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