diff --git a/packages/installation-tests/installation-tests.sh b/packages/installation-tests/installation-tests.sh index 7c34552aca..485a2a9ba4 100755 --- a/packages/installation-tests/installation-tests.sh +++ b/packages/installation-tests/installation-tests.sh @@ -407,6 +407,10 @@ function test_playwright_cli_install_should_work { echo "ERROR: should download chromium" exit 1 fi + if [[ "${OUTPUT}" != *"ffmpeg"* ]]; then + echo "ERROR: should download ffmpeg" + exit 1 + fi if [[ "${OUTPUT}" == *"webkit"* ]]; then echo "ERROR: should not download webkit" exit 1 @@ -422,6 +426,10 @@ function test_playwright_cli_install_should_work { echo "ERROR: should not download chromium" exit 1 fi + if [[ "${OUTPUT}" == *"ffmpeg"* ]]; then + echo "ERROR: should not download ffmpeg" + exit 1 + fi if [[ "${OUTPUT}" != *"webkit"* ]]; then echo "ERROR: should download webkit" exit 1 diff --git a/src/cli/cli.ts b/src/cli/cli.ts index 625eef6330..866741e97e 100755 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -90,6 +90,8 @@ program process.exit(1); } } + if (browserType.length && browserType.includes('chromium')) + browserType = browserType.concat('ffmpeg'); installBrowsers(browserType.length ? browserType : undefined).catch((e: any) => { console.log(`Failed to install browsers\n${e}`); process.exit(1);