So, ChromeDriver version again upgraded to 84 version and my chrome is still on version 83, without any update available (probably because I upgraded my Linux Mint to 20). This produces good old:
session not created: This version of ChromeDriver only supports Chrome version 84
We already know how to fix this and, as usual, to run e2e tests I need to downgrade ChromeDriver version with a workaround:
"pree2e": "node ./node_modules/protractor/bin/webdriver-manager update --gecko=false --versions.chrome '83.0.4103.116-1'",
"e2e": "ng e2e --webdriver-update=false"
and then run npm run e2e for it to work.
Is there a way to automatically force ChromeDrive to match Chrome version? Like writing a pree2e script that checks current chrome version and then forces ChromeDriver to same one?