From 89f968b96a728d3119eb125270f434a73a1979bc Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 30 Jul 2018 18:36:21 -0700 Subject: [PATCH] test: try to fix CSS coverage flakes on win (#2992) --- test/coverage.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/coverage.spec.js b/test/coverage.spec.js index 37263aa7..0e354e08 100644 --- a/test/coverage.spec.js +++ b/test/coverage.spec.js @@ -22,7 +22,7 @@ module.exports.addTests = function({testRunner, expect}) { describe('JSCoverage', function() { it('should work', async function({page, server}) { await page.coverage.startJSCoverage(); - await page.goto(server.PREFIX + '/jscoverage/simple.html'); + await page.goto(server.PREFIX + '/jscoverage/simple.html', {waitUntil: 'networkidle0'}); const coverage = await page.coverage.stopJSCoverage(); expect(coverage.length).toBe(1); expect(coverage[0].url).toContain('/jscoverage/simple.html');