mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
CI - Ability to run only e2e cloud in case is the only affected folder (#4783)
* Remove skiplint option in favour of lint Refactor protractor config * Move rebase check * Remove the skiplint and run only e2e cloud * Remove the skip lint * Change e2e cloud and check the CI runs only that one * Enable the smart e2e on content * Delegate the e2e run on the specific project * Fix typo on specs option * Add basic readme and fix process service name problem * Fix bash else if
This commit is contained in:
committed by
Eugenio Romano
parent
6897f20954
commit
f6d8bd4130
@@ -1,3 +1,80 @@
|
||||
# Alfresco Testing Library
|
||||
|
||||
Contains the reusable pages for e2e tests
|
||||
|
||||
## Run e2e against a remote env using the .env.cloud file
|
||||
Create a file `.env.cloud` under the `e2e` folder
|
||||
```
|
||||
URL_HOST_BPM_ADF="https://gateway.example.com"
|
||||
URL_HOST_SSO_ADF="https://identity.example.com/auth/realms/alfresco"
|
||||
URL_HOST_IDENTITY="https://identity.example.com/auth/admin/realms/alfresco"
|
||||
IDENTITY_USERNAME_ADF="username"
|
||||
IDENTITY_PASSWORD_ADF="password"
|
||||
```
|
||||
|
||||
### How can I run the *cloud* e2e against a *remote* env with *chrome headless* ?
|
||||
Add to `.env.cloud` and run `./scripts/test-e2e-lib.sh`
|
||||
```
|
||||
FOLDER="process-services-cloud"
|
||||
URL_HOST_ADF="http://myadf.example.com"
|
||||
...
|
||||
```
|
||||
or
|
||||
`./scripts/test-e2e-lib.sh -host http://myadf.example.com -f process-services-cloud`
|
||||
|
||||
### How can I run the *cloud* e2e against a *remote* env with *full chrome* ?
|
||||
Add to `.env.cloud` and run `./scripts/test-e2e-lib.sh`
|
||||
```
|
||||
BROWSER_RUN=true
|
||||
FOLDER="process-services-cloud"
|
||||
URL_HOST_ADF="http://myadf.example.co"
|
||||
...
|
||||
```
|
||||
or
|
||||
`./scripts/test-e2e-lib.sh -host http://myadf.example.com -f process-services-cloud -b`
|
||||
|
||||
### How can I run specific *specs* agains a *remote* env?
|
||||
Add to `.env.cloud` and run `./scripts/test-e2e-lib.sh`
|
||||
```
|
||||
LIST_SPECS="process-services-cloud/apps-section-cloud.e2e.ts,process-services-cloud/task-filters-cloud.e2e.ts"
|
||||
URL_HOST_ADF="http://myadf.example.co"
|
||||
...
|
||||
```
|
||||
or `./scripts/test-e2e-lib.sh -host http://myadf.example.com -s process-services-cloud/apps-section-cloud.e2e.ts,process-services-cloud/task-filters-cloud.e2e.ts`
|
||||
|
||||
## Run e2e against a local env (use dist) using the .env.cloud file
|
||||
Create a file `.env.cloud` under the `e2e` folder
|
||||
```
|
||||
URL_HOST_BPM_ADF="https://gateway.example.com"
|
||||
URL_HOST_SSO_ADF="https://identity.example.com/auth/realms/alfresco"
|
||||
URL_HOST_IDENTITY="https://identity.example.com/auth/admin/realms/alfresco"
|
||||
IDENTITY_USERNAME_ADF="username"
|
||||
IDENTITY_PASSWORD_ADF="password"
|
||||
```
|
||||
### How can I run the *cloud* e2e against a *local* env with *chrome headless* ?
|
||||
Add to `.env.cloud` and run `./scripts/test-e2e-lib.sh -ud`
|
||||
```
|
||||
FOLDER="process-services-cloud"
|
||||
URL_HOST_ADF="http://localhost:4200"
|
||||
...
|
||||
```
|
||||
or `./scripts/test-e2e-lib.sh -ud -host http://localhost:4200 -f process-services-cloud `
|
||||
|
||||
### How can I run the *cloud* e2e against a *local* env with *full chrome* ?
|
||||
Add to `.env.cloud` and run `./scripts/test-e2e-lib.sh -ud`
|
||||
```
|
||||
BROWSER_RUN=true
|
||||
FOLDER="process-services-cloud"
|
||||
URL_HOST_ADF="http://localhost:4200"
|
||||
...
|
||||
```
|
||||
or `./scripts/test-e2e-lib.sh -ud -host http://localhost:4200 -f process-services-cloud -b`
|
||||
|
||||
### How can I run specific *specs* agains a *local* env?
|
||||
Add to `.env.cloud` and run `./scripts/test-e2e-lib.sh -ud`
|
||||
```
|
||||
LIST_SPECS="process-services-cloud/apps-section-cloud.e2e.ts,process-services-cloud/task-filters-cloud.e2e.ts"
|
||||
URL_HOST_ADF="http://localhost:4200"
|
||||
...
|
||||
```
|
||||
or `./scripts/test-e2e-lib.sh -ud -host http://localhost:4200 -s process-services-cloud/apps-section-cloud.e2e.ts,process-services-cloud/task-filters-cloud.e2e.ts`
|
||||
|
Reference in New Issue
Block a user