Skip to content

Commit

Permalink
fix metrics collection on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Jan 2, 2023
1 parent 312aab0 commit 2d7bad6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/replay/metrics/src/scenarios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export class JankTestScenario implements Scenario {
public constructor(private withSentry: boolean) { }

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

0 comments on commit 2d7bad6

Please sign in to comment.