fix(html-reporter): do not verbose yell when opening report without gui (#14935)
This commit is contained in:
parent
2f31e6373a
commit
08ac966f68
|
|
@ -219,7 +219,7 @@ export async function showHTMLReport(reportFolder: string | undefined, testId?:
|
||||||
console.log(colors.cyan(` Serving HTML report at ${url}. Press Ctrl+C to quit.`));
|
console.log(colors.cyan(` Serving HTML report at ${url}. Press Ctrl+C to quit.`));
|
||||||
if (testId)
|
if (testId)
|
||||||
url += `#?testId=${testId}`;
|
url += `#?testId=${testId}`;
|
||||||
open(url);
|
await open(url, { wait: true }).catch(() => console.log(`Failed to open browser on ${url}`));
|
||||||
await new Promise(() => {});
|
await new Promise(() => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue