From ad467446bb36b01d12d083c661e0573b5c96f7d1 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 27 Jul 2023 22:25:57 +0200 Subject: [PATCH] devops: fix Selenium tests (#24472) The issue was that it got unzipped under "chromedriver/chromedriver" and not just under "chromedriver" --- tests/installation/fixture-scripts/download-chromedriver.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/installation/fixture-scripts/download-chromedriver.js b/tests/installation/fixture-scripts/download-chromedriver.js index ee57b62a02..e8bf936e8c 100644 --- a/tests/installation/fixture-scripts/download-chromedriver.js +++ b/tests/installation/fixture-scripts/download-chromedriver.js @@ -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); })();