We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 312aab0 commit 2d7bad6Copy full SHA for 2d7bad6
packages/replay/metrics/src/scenarios.ts
@@ -36,8 +36,10 @@ export class JankTestScenario implements Scenario {
36
public constructor(private withSentry: boolean) { }
37
38
public async run(_: puppeteer.Browser, page: puppeteer.Page): Promise<void> {
39
- 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');
40
assert(fs.existsSync(url));
41
+ url = 'file:///' + url.replace('\\', '/');
42
+ console.log('Navigating to ', url);
43
await page.goto(url, { waitUntil: 'load', timeout: 60000 });
44
await new Promise(resolve => setTimeout(resolve, 5000));
45
}
0 commit comments