devops: fix Selenium tests (#24472)

The issue was that it got unzipped under "chromedriver/chromedriver" and
not just under "chromedriver"
This commit is contained in:
Max Schmitt 2023-07-27 22:25:57 +02:00 committed by GitHub
parent 335d5275cc
commit ad467446bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,8 +27,7 @@ const fs = require('fs');
execSync(`curl ${chromeDriverURL} --output ${zip} --silent`);
console.log(`Downloaded ${zip}`);
execSync(`unzip ${zip}`, { cwd: dir });
execSync(`unzip -j ${zip}`, { cwd: dir });
console.log(`Unzipped ${zip}`);
fs.renameSync(`chromedriver-${currentPlatform}`, `chromedriver`);
fs.rmSync(zip);
})();