fix(html-reporter): do not verbose yell when opening report without gui (#14935)

This commit is contained in:
Max Schmitt 2022-06-17 18:38:23 +02:00 committed by GitHub
parent 2f31e6373a
commit 08ac966f68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.`));
if (testId)
url += `#?testId=${testId}`;
open(url);
await open(url, { wait: true }).catch(() => console.log(`Failed to open browser on ${url}`));
await new Promise(() => {});
}