mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
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:
18
scripts/update-webdriver.ps1
Normal file
18
scripts/update-webdriver.ps1
Normal 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 "==============================================================="
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user