We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c26559d commit 364fddfCopy full SHA for 364fddf
packages/@vue/cli-plugin-pwa/__tests__/pwaPlugin.spec.js
@@ -58,7 +58,8 @@ test('pwa', async () => {
58
const launched = await launchPuppeteer(`http://localhost:${port}/`)
59
browser = launched.browser
60
61
- await new Promise(r => setTimeout(r, process.env.CI ? 1000 : 300))
+ // workbox plugin fetches scripts from CDN so it takes a while...
62
+ await new Promise(r => setTimeout(r, 2000))
63
const logs = launched.logs
64
expect(logs.some(msg => msg.match(/Content has been cached for offline use/))).toBe(true)
65
expect(logs.some(msg => msg.match(/App is being served from cache by a service worker/))).toBe(true)
0 commit comments