AAE-22865 - Fixing webdriver version used and installed (#9749)

* Fixing webdriver version used and installed

* Fixing webdriver selenium version

* Disabling Code flow for grant password auth

* Removing the install from the script as it's done in the postinstall now

* It's funny how this tests work

* Having codeflow disabled by default

* Checking if Core tests pass

* Refreshing as SSO button is broken after clicking apply
This commit is contained in:
Vito Albano
2024-05-30 16:36:48 +01:00
committed by GitHub
parent a1555074a7
commit 6bdfd83dac
10 changed files with 249 additions and 133 deletions

View File

@@ -0,0 +1,18 @@
$dir = Split-Path -Parent $MyInvocation.MyCommand.Path
if ($env:CI -eq "true") {
Write-Host "Updating webdriver-manager with chromedriver: $env:npm_package_config_chromeDriver."
./node_modules/protractor/bin/webdriver-manager update --gecko=false --versions.chrome=$(google-chrome --product-version)
} else {
Write-Host "Updating webdriver-manager with latest chromedriver, be sure to use evergreen Chrome."
npx webdriver-manager update --gecko=false
if ($LASTEXITCODE -ne 0) {
Write-Host "`n==============================================================="
Write-Host "FAILED TO UPDATE WEBDRIVER-MANAGER, PLEASE DO IT MANUALLY!"
Write-Host "Run the following command (sometimes needs more than one kick):"
Write-Host ""
Write-Host "npx webdriver-manager update --gecko=false"
Write-Host ""
Write-Host "==============================================================="
}
}