mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* 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
19 lines
952 B
PowerShell
19 lines
952 B
PowerShell
$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 "==============================================================="
|
|
}
|
|
}
|