test: revert partly 8770c64 (#6740)

This commit is contained in:
Max Schmitt 2021-05-25 17:10:43 +02:00 committed by GitHub
parent 01d8f87923
commit c9f35fb811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,9 +18,8 @@ import { contextTest as it, expect } from '../config/browserTest';
it('should work', async function({page, server}) {
await page.coverage.startJSCoverage();
await page.goto(server.PREFIX + '/jscoverag e/simple.html', { waitUntil: 'load' });
await page.goto(server.PREFIX + '/jscoverage/simple.html', { waitUntil: 'load' });
const coverage = await page.coverage.stopJSCoverage();
console.log(JSON.stringify(coverage, null, 2));
expect(coverage.length).toBe(1);
expect(coverage[0].url).toContain('/jscoverage/simple.html');
expect(coverage[0].functions.find(f => f.functionName === 'foo').ranges[0].count).toEqual(1);