diff --git a/CHANGELOG.md b/CHANGELOG.md index f2924cdc1c11..9d1ce2f27933 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -210,6 +210,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Prevent primitive linting limitations from being applied to unit tests found under `src/setup_node_env` ([#3403](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3403)) - [Tests] Fix unit tests for `get_keystore` ([#3854](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3854)) - [Tests] Use `scripts/use_node` instead of `node` in functional test plugins ([#3783](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3783)) +- Temporarily hardcode chromedriver to 112.0.0 to enable all ftr tests ([#3976](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/3976)) ## [2.x] diff --git a/scripts/upgrade_chromedriver.js b/scripts/upgrade_chromedriver.js index 3aa896fd1fa9..bd87c683330f 100644 --- a/scripts/upgrade_chromedriver.js +++ b/scripts/upgrade_chromedriver.js @@ -74,7 +74,9 @@ if (majorVersion) { if (process.argv.includes('--install')) { console.log(`Installing chromedriver@^${majorVersion}`); - spawnSync(`yarn add --dev chromedriver@^${majorVersion}`, { + // TODO: Temporary fix to install chromedriver 112.0.0; revert this once Node is bumped to 16+. + // https://github.com/opensearch-project/OpenSearch-Dashboards/issues/3975 + spawnSync('yarn add --dev chromedriver@112.0.0', { stdio: 'inherit', cwd: process.cwd(), shell: true, @@ -90,10 +92,9 @@ if (majorVersion) { }); rl.on('line', (line) => { if (line.includes('"chromedriver": "')) { - line = line.replace( - /"chromedriver":\s*"[~^]?\d[\d.]*\d"/, - `"chromedriver": "^${majorVersion}"` - ); + // TODO: Temporary fix to install chromedriver 112.0.0; revert this once Node is bumped to 16+. + // https://github.com/opensearch-project/OpenSearch-Dashboards/issues/3975 + line = line.replace(/"chromedriver":\s*"[~^]?\d[\d.]*\d"/, `"chromedriver": "112.0.0"`); upgraded = true; } writeStream.write(line + '\n', 'utf8');