[ADF-5331] - Alpha ADF/JS-API update has been successfully created. (#6639)

* remove unused script
refactor the alpha build to use the JS-API in the branch all the time

* use alpha build number

* rewire maxretry

* Delete check-js-api-version.js
This commit is contained in:
Eugenio Romano
2021-02-08 16:00:44 +00:00
committed by GitHub
parent 94ec7d06a7
commit 2071596fe6
14 changed files with 278 additions and 795 deletions

View File

@@ -6,7 +6,6 @@ BROWSER_RUN=false
DEVELOPMENT=false
LITESERVER=false
EXEC_VERSION_JSAPI=false
TIMEOUT=120000
DEBUG=false
show_help() {
@@ -26,12 +25,10 @@ show_help() {
echo "-host or --host URL of the Front end to test"
echo "-host_sso the entire path including the name of the realm"
echo "-save save the error screenshot and report in the remote env"
echo "-timeout or --timeout override the timeout foe the wait utils"
echo "-m --maxInstances max instances parallel for tests"
echo "-log or --log print all the browser log"
echo "-db or --debug run the debugger"
echo "-ud run dist"
echo "-vjsapi install different version from npm of JS-API defined in the package.json"
echo "-h or --help"
}
@@ -82,10 +79,6 @@ set_proxy(){
export PROXY_HOST_ADF=$PROXY
}
set_timeout(){
TIMEOUT=$1
}
set_save_screenshot(){
mkdir -p ./e2e-output/junit-report
export SAVE_SCREENSHOT=true
@@ -126,18 +119,6 @@ max_instances(){
export MAXINSTANCES=$1
}
version_js_api() {
JSAPI_VERSION=$1
if [[ "${JSAPI_VERSION}" == "" ]]
then
echo "JSAPI version required with -vJSApi"
exit 0
fi
EXEC_VERSION_JSAPI=true
}
while [[ $1 == -* ]]; do
case "$1" in
-h|--help|-\?) show_help; exit 0;;
@@ -146,7 +127,6 @@ while [[ $1 == -* ]]; do
-identity_admin_email) set_identity_admin_email $2; shift 2;;
-identity_admin_password) set_identity_admin_password $2; shift 2;;
-f|--folder) set_test_folder $2; shift 2;;
-timeout|--timeout) set_timeout $2; shift 2;;
-b|--browser) set_browser; shift;;
-env|--env) set_env $2; shift 2;;
-dev|--dev) set_development; shift;;
@@ -161,7 +141,6 @@ while [[ $1 == -* ]]; do
-log|--log) set_log; shift ;;
-host_sso|--host_sso) set_host_sso $2; shift 2;;
-m|--maxInstances) max_instances $2; shift 2;;
-vjsapi) version_js_api $2; shift 2;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
esac
done
@@ -169,13 +148,6 @@ done
rm -rf ./e2e/downloads/
rm -rf ./e2e-output/
export TIMEOUT=$TIMEOUT
if $EXEC_VERSION_JSAPI == true; then
echo "====== Use the alfresco JS-API '$JSAPI_VERSION'====="
npm install alfresco-js-api@${JSAPI_VERSION}
fi
echo "====== Update webdriver-manager ====="
if [ "$CI" = "true" ]; then
export chrome=$(google-chrome --product-version)