fix: install chromium along with ffmpeg (#5774)
This commit is contained in:
parent
fea6669473
commit
ddfdf8a76a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue