Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix: install chromium along with ffmpeg (#5774)
Yury Semikhatskyddfdf8a76a87
diff --git a/packages/installation-tests/installation-tests.sh b/packages/installation-tests/installation-tests.shindex 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 1fi+ if [[ "${OUTPUT}" != *"ffmpeg"* ]]; then+ echo "ERROR: should download ffmpeg"+ exit 1+ fiif [[ "${OUTPUT}" == *"webkit"* ]]; thenecho "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 1fi+ if [[ "${OUTPUT}" == *"ffmpeg"* ]]; then+ echo "ERROR: should not download ffmpeg"+ exit 1+ fiif [[ "${OUTPUT}" != *"webkit"* ]]; thenecho "ERROR: should download webkit"exit 1diff --git a/src/cli/cli.ts b/src/cli/cli.tsindex 625eef6330..866741e97e 100755--- a/src/cli/cli.ts+++ b/src/cli/cli.ts@@ -90,6 +90,8 @@ programprocess.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);