test: try to fix CSS coverage flakes on win (#2992)

This commit is contained in:
Andrey Lushnikov 2018-07-30 18:36:21 -07:00 committed by GitHub
parent 4bbaa9d4f5
commit 89f968b96a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ module.exports.addTests = function({testRunner, expect}) {
describe('JSCoverage', function() { describe('JSCoverage', function() {
it('should work', async function({page, server}) { it('should work', async function({page, server}) {
await page.coverage.startJSCoverage(); 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(); const coverage = await page.coverage.stopJSCoverage();
expect(coverage.length).toBe(1); expect(coverage.length).toBe(1);
expect(coverage[0].url).toContain('/jscoverage/simple.html'); expect(coverage[0].url).toContain('/jscoverage/simple.html');