test: further bump pwa wait time on CI

This commit is contained in:
Evan You
2018-02-08 15:39:02 -05:00
parent 4b82fe1897
commit caaeaab1f7

View File

@@ -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)