fix: align default docker image download with the docker integration (#9842)
The docker image that we download should match the one we expect while running tests in docker.
This commit is contained in:
parent
4b22e1d54a
commit
f15ff0354b
|
|
@ -115,7 +115,7 @@ program
|
||||||
const installDockerImage = args.some(arg => arg === 'docker-image');
|
const installDockerImage = args.some(arg => arg === 'docker-image');
|
||||||
args = args.filter(arg => arg !== 'docker-image');
|
args = args.filter(arg => arg !== 'docker-image');
|
||||||
if (installDockerImage) {
|
if (installDockerImage) {
|
||||||
const imageName = `mcr.microsoft.com/playwright:v${getPlaywrightVersion()}`;
|
const imageName = `mcr.microsoft.com/playwright:v${getPlaywrightVersion()}-focal`;
|
||||||
const { code } = await spawnAsync('docker', ['pull', imageName], { stdio: 'inherit' });
|
const { code } = await spawnAsync('docker', ['pull', imageName], { stdio: 'inherit' });
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
console.log('Failed to pull docker image');
|
console.log('Failed to pull docker image');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue