Skip to content

Commit 2d7bad6

Browse files
committed
fix metrics collection on linux
1 parent 312aab0 commit 2d7bad6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/replay/metrics/src/scenarios.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ export class JankTestScenario implements Scenario {
3636
public constructor(private withSentry: boolean) { }
3737

3838
public async run(_: puppeteer.Browser, page: puppeteer.Page): Promise<void> {
39-
const url = path.resolve('./test-apps/jank/' + (this.withSentry ? 'with-sentry' : 'index') + '.html');
39+
let url = path.resolve('./test-apps/jank/' + (this.withSentry ? 'with-sentry' : 'index') + '.html');
4040
assert(fs.existsSync(url));
41+
url = 'file:///' + url.replace('\\', '/');
42+
console.log('Navigating to ', url);
4143
await page.goto(url, { waitUntil: 'load', timeout: 60000 });
4244
await new Promise(resolve => setTimeout(resolve, 5000));
4345
}

0 commit comments

Comments
 (0)