mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3259] [ADF-3363] e2e login and card metadata (#3612)
* remember me * add login component e2e test * add success route test * add change logo check * redirect url after logout e2e * move redirection test in a separate file * login component tslint * cardview e2e * fix login test * add test case number * move version test in a separate file * clean unused elements * metadata part 1 * tslint fix * fix metadata test * remove fit * fix formatting file viewerPage * multi propety test * metadata and login improvements * fix data automation fix * metadata permission e2e * fix tslint problems * improve selector * stabilize search component test * stabilize test step 1 * fix tag test add config timeout * tentative * delay after download * change meatdata test * stabilize metadata * use smaller file for not extension related test * stabilize test step 2 * exclude failing test * timeout fix * split in multiple task e2e * trick travis * trigger build * fix command issue * fix save screenshot * fix run subfolder * test timeout increase
This commit is contained in:
committed by
Eugenio Romano
parent
66f534b32c
commit
b2cb93468d
@@ -13,10 +13,12 @@ show_help() {
|
||||
echo "-e or --email"
|
||||
echo "-b or --browser run the test in the browsrwer (No headless mode)"
|
||||
echo "-s or --spec run a single test file"
|
||||
echo "-f or --folder run a single folder test"
|
||||
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 "-save save the error screenshot in the remote env"
|
||||
echo "-timeout or --timeout override the timeout foe the wait utils"
|
||||
echo "-h or --help"
|
||||
}
|
||||
|
||||
@@ -47,6 +49,10 @@ set_proxy(){
|
||||
PROXY=$1
|
||||
}
|
||||
|
||||
set_timeout(){
|
||||
TIMEOUT=$1
|
||||
}
|
||||
|
||||
set_save_screenshot(){
|
||||
SAVE_SCREENSHOT=true
|
||||
}
|
||||
@@ -55,12 +61,18 @@ set_development(){
|
||||
DEVELOPMENT=true
|
||||
}
|
||||
|
||||
set_test_folder(){
|
||||
FOLDER=$1
|
||||
}
|
||||
|
||||
while [[ $1 == -* ]]; do
|
||||
case "$1" in
|
||||
-h|--help|-\?) show_help; exit 0;;
|
||||
-u|--username) set_username $2; shift 2;;
|
||||
-p|--password) set_password $2; shift 2;;
|
||||
-e|--email) set_email $2; shift 2;;
|
||||
-f|--folder) set_test_folder $2; shift 2;;
|
||||
-timeout|--timeout) set_timeout $2; shift 2;;
|
||||
-b|--browser) set_browser; shift;;
|
||||
-dev|--dev) set_development; shift;;
|
||||
-s|--spec) set_test $2; shift 2;;
|
||||
@@ -81,7 +93,8 @@ export EMAIL_ADF=$EMAIL
|
||||
export BROWSER_RUN=$BROWSER_RUN
|
||||
export PROXY_HOST_ADF=$PROXY
|
||||
export SAVE_SCREENSHOT=$SAVE_SCREENSHOT
|
||||
|
||||
export TIMEOUT=$TIMEOUT
|
||||
export FOLDER=$FOLDER'/'
|
||||
|
||||
if [[ $DEVELOPMENT == "true" ]]; then
|
||||
echo "====== Run against local development ====="
|
||||
|
Reference in New Issue
Block a user