fix: install chromium along with ffmpeg (#5774)

This commit is contained in:
Yury Semikhatsky 2021-03-10 14:01:35 -08:00 committed by GitHub
parent fea6669473
commit ddfdf8a76a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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);