From 08ac966f6811977ac631ae8db24efb8818736195 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Fri, 17 Jun 2022 18:38:23 +0200 Subject: [PATCH] fix(html-reporter): do not verbose yell when opening report without gui (#14935) --- packages/playwright-test/src/reporters/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/playwright-test/src/reporters/html.ts b/packages/playwright-test/src/reporters/html.ts index 4b95c7e793..eaa026dc75 100644 --- a/packages/playwright-test/src/reporters/html.ts +++ b/packages/playwright-test/src/reporters/html.ts @@ -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(() => {}); }