Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(install): prevent new-lines on CI/without TTY (#6703)

Max Schmitt39a8abd9ab52
diff --git a/src/install/browserFetcher.ts b/src/install/browserFetcher.ts
index 04d7df50b4..eadc8e53b2 100644
--- a/src/install/browserFetcher.ts
+++ b/src/install/browserFetcher.ts
@@ -54,6 +54,8 @@ export async function downloadBrowserWithProgressBar(registry: Registry, browser
let lastDownloadedBytes = 0;
function progress(downloadedBytes: number, totalBytes: number) {
+ if (!process.stderr.isTTY)
+ return;
if (!progressBar) {
progressBar = new ProgressBar(`Downloading ${progressBarName} - ${toMegabytes(totalBytes)} [:bar] :percent :etas `, {
complete: '=',