mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-5343] refactor Playwright framework in ACA (#3261)
* [ACS-5343] refactor Playwright framework in ACA * Add the tests for Actions, from the Adam PR [ACS-5328] * Small fixes * Improve logs * [ACS-5343] adding-goThroughPages-and-delete * [ACS-5343] added git changes * [ACS-5343] added git changes for playwright * [ACS-5343] fix for e2e * [ACS-5343] e2e protractor path fix * remove import * [ACS-5343] e2e playwright user fix * [ACS-5343] e2e playwright user ids fix * [ACS-5343] e2e playwright users ids fix * changes for git * fix playwright test run * tsconfig path fix * playwright action yml added * retrigger checks * add test id from testrail * merge conflits * fix gha * fix credentials --------- Co-authored-by: adam.zakrzewski <adam.zakrzewski@hyland.com> Co-authored-by: akash.rathod@hyland.com <akash.rathod@hyland.com> Co-authored-by: Denys Vuika <denys.vuika@gmail.com>
This commit is contained in:
co-authored by
adam.zakrzewski
akash.rathod@hyland.com
Denys Vuika
parent
e0a74d7fb9
commit
c843a8dbaa
@@ -0,0 +1,57 @@
|
||||
name: "Run e2e Playwright"
|
||||
description: "Run e2e Playwright"
|
||||
|
||||
inputs:
|
||||
options:
|
||||
description: 'Options'
|
||||
required: true
|
||||
type: string
|
||||
test-runner:
|
||||
description: 'Test runner'
|
||||
required: false
|
||||
type: string
|
||||
default: 'Playwright'
|
||||
artifact-name:
|
||||
description: Name of the artifact cache
|
||||
required: true
|
||||
type: string
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Setup and run with options
|
||||
shell: bash
|
||||
run: |
|
||||
# npx http-server -c-1 $CONTENT_CE_DIST_PATH -p 4200 > /dev/null &\
|
||||
|
||||
{
|
||||
echo "APP_CONFIG_ECM_HOST={protocol}//{hostname}{:port}"
|
||||
echo "APP_CONFIG_PLUGIN_FOLDER_RULES=true"
|
||||
echo "APP_CONFIG_PLUGIN_AOS=true"
|
||||
echo "APP_CONFIG_PLUGIN_CONTENT_SERVICE=true"
|
||||
echo "APP_CONFIG_ENABLE_MOBILE_APP_SWITCH=false"
|
||||
echo "APP_CONFIG_PROVIDER=ECM"
|
||||
echo "APP_CONFIG_AUTH_TYPE=BASIC"
|
||||
echo "APP_CONFIG_OAUTH2_HOST=http://localhost:4200/auth/realms/alfresco"
|
||||
echo "APP_CONFIG_OAUTH2_CLIENTID=alfresco"
|
||||
echo "APP_CONFIG_SESSION_TIME_FOR_OPEN_APP_DIALOG_DISPLAY_IN_HOURS=12"
|
||||
echo "APP_CONFIG_OAUTH2_IMPLICIT_FLOW=true"
|
||||
echo "APP_CONFIG_OAUTH2_SILENT_LOGIN=true"
|
||||
echo "APP_CONFIG_OAUTH2_REDIRECT_LOGOUT=/"
|
||||
echo "APP_CONFIG_OAUTH2_REDIRECT_LOGIN=/"
|
||||
echo "APP_CONFIG_OAUTH2_REDIRECT_SILENT_IFRAME_URI={protocol}//{hostname}{:port}/assets/silent-refresh.html"
|
||||
} >> .env
|
||||
|
||||
npm start > /dev/null &\
|
||||
|
||||
echo "Running playwright tests with options ${{ inputs.options }}"
|
||||
sleep 90
|
||||
npx nx run ${{ inputs.options }}-e2e:e2e
|
||||
|
||||
|
||||
- name: Upload E2Es results
|
||||
if: ${{ always() }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ inputs.artifact-name }}
|
||||
path: test-results/
|
||||
Reference in New Issue
Block a user