diff --git a/test/golden/csscoverage-involved.txt b/test/golden/csscoverage-involved.txt index 33103e01..9b851d0b 100644 --- a/test/golden/csscoverage-involved.txt +++ b/test/golden/csscoverage-involved.txt @@ -1,6 +1,6 @@ [ { - "url": "http://localhost:8907/csscoverage/involved.html", + "url": "http://localhost:/csscoverage/involved.html", "ranges": [ { "start": 149, diff --git a/test/golden/jscoverage-involved.txt b/test/golden/jscoverage-involved.txt index 03cd1836..6f28e158 100644 --- a/test/golden/jscoverage-involved.txt +++ b/test/golden/jscoverage-involved.txt @@ -1,6 +1,6 @@ [ { - "url": "http://localhost:8907/jscoverage/involved.html", + "url": "http://localhost:/jscoverage/involved.html", "ranges": [ { "start": 0, diff --git a/test/test.js b/test/test.js index 47f60eae..595fe63e 100644 --- a/test/test.js +++ b/test/test.js @@ -3479,7 +3479,7 @@ describe('Page', function() { await page.coverage.startJSCoverage(); await page.goto(server.PREFIX + '/jscoverage/involved.html'); const coverage = await page.coverage.stopJSCoverage(); - expect(JSON.stringify(coverage, null, 2)).toBeGolden('jscoverage-involved.txt'); + expect(JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':/')).toBeGolden('jscoverage-involved.txt'); }); describe('resetOnNavigation', function() { it('should report scripts across navigations when disabled', async function({page, server}) { @@ -3549,7 +3549,7 @@ describe('Page', function() { await page.coverage.startCSSCoverage(); await page.goto(server.PREFIX + '/csscoverage/involved.html'); const coverage = await page.coverage.stopCSSCoverage(); - expect(JSON.stringify(coverage, null, 2)).toBeGolden('csscoverage-involved.txt'); + expect(JSON.stringify(coverage, null, 2).replace(/:\d{4}\//g, ':/')).toBeGolden('csscoverage-involved.txt'); }); it('should ignore injected stylesheets', async function({page, server}) { await page.coverage.startCSSCoverage();