Skip to content

Commit caaeaab

Browse files
committed
test: further bump pwa wait time on CI
1 parent 4b82fe1 commit caaeaab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-pwa/__tests__/pwaPlugin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test('pwa', async () => {
5959
browser = launched.browser
6060

6161
// workbox plugin fetches scripts from CDN so it takes a while...
62-
await new Promise(r => setTimeout(r, 2000))
62+
await new Promise(r => setTimeout(r, process.env.CI ? 5000 : 2000))
6363
const logs = launched.logs
6464
expect(logs.some(msg => msg.match(/Content has been cached for offline use/))).toBe(true)
6565
expect(logs.some(msg => msg.match(/App is being served from cache by a service worker/))).toBe(true)

0 commit comments

Comments
 (0)