[ADF-3739] E2E test - login with SSO (#3949)

*  modify settings page and add test for login with SSO

* remove await

* added the HOST_SSO as parameter

* change setSilentLogin method, add new method, add new test

* remove comment

* optional parameters silentLogin and implicitFlow

* moved --host_sso "$E2E_HOST_SSO" to ./scripts/test-e2e-lib.sh script
This commit is contained in:
rgherghelas
2018-11-16 12:39:46 +02:00
committed by Eugenio Romano
parent 09a259bfa1
commit 604d401180
6 changed files with 181 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ show_help() {
echo "-proxy or --proxy proxy Back end URL to use only possibel to use with -dev option"
echo "-dev or --dev run it against local development environment it will deploy on localhost:4200 the current version of your branch"
echo "-host or --host URL of the Front end to test"
echo "-host_sso or --host URL of the Back end to test"
echo "-save save the error screenshot in the remote env"
echo "-timeout or --timeout override the timeout foe the wait utils"
echo "-sl --skip-lint skip lint"
@@ -41,6 +42,10 @@ set_host(){
HOST=$1
}
set_host_sso(){
HOST_SSO=$1
}
set_test(){
SINGLE_TEST=true
NAME_TEST=$1
@@ -111,6 +116,7 @@ while [[ $1 == -* ]]; do
-proxy|--proxy) set_proxy $2; shift 2;;
-s|--seleniumServer) set_selenium $2; shift 2;;
-host|--host) set_host $2; shift 2;;
-host_sso|--host_sso) set_host_sso $2; shift 2;;
-sl|--skip-lint) skip_lint; shift;;
-vjsapi) version_js_api $2; shift 2;;
-*) echo "invalid option: $1" 1>&2; show_help; exit 1;;
@@ -120,6 +126,7 @@ done
rm -rf ./e2e/downloads/
rm -rf ./e2e-output/screenshots/
export URL_HOST_SSO_ADF=$HOST_SSO
export URL_HOST_ADF=$HOST
export USERNAME_ADF=$USERNAME
export PASSWORD_ADF=$PASSWORD