[ACS-8153] delete protractor e2e configuration and files (#3885)

* [ACS-8153] delete protractor e2e configuration and files

* [ACS-8153] util fix

* [ACS-8153] pr fix

* [ACS-81532] remove e2e package.json

* [ACS-81532] remove chrome configuration

* package-lock file
This commit is contained in:
Akash Rathod
2024-07-26 13:07:32 +02:00
committed by GitHub
parent dfd23265d1
commit 4e67a8d9b0
99 changed files with 131 additions and 7151 deletions

View File

@@ -11,7 +11,6 @@ runs:
if [[ $COMMIT_MESSAGE == *"[link-adf:"* ]]; then
echo "BUILD_OPTS=--configuration=adf,e2e" >> $GITHUB_ENV
echo "TEST_OPTS=--configuration=adfprod" >> $GITHUB_ENV
echo "E2E_PROTRACTOR_OPTS=--with-local-adf" >> $GITHUB_ENV
echo "E2E_TSCONFIG=tsconfig.e2e.adf.json" >> $GITHUB_ENV
BRANCH=`echo $COMMIT_MESSAGE | grep -o "\[link-adf\:[^]]*\]" | sed -e 's#\[link-adf:##g' | sed -e 's#\]##g'`

View File

@@ -1,30 +1,9 @@
name: "Before e2e"
description: "Before e2e"
inputs:
e2e-protractor:
description: 'is e2e run with protractor'
required: false
type: boolean
default: false
runs:
using: "composite"
steps:
- name: Check content UP
shell: bash
run: ./node_modules/@alfresco/adf-cli/bin/adf-cli check-cs-env --host $BASE_URL -u $ADMIN_EMAIL -p $ADMIN_PASSWORD || exit 1
- name: Install google chrome v114
shell: bash
run: |
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
sudo ln -s /usr/bin/google-chrome /usr/bin/chrome
chrome --version
- name: Update webdriver-manager
if: ${{ inputs.e2e-protractor == 'true' }}
shell: bash
run: |
npm run update-webdriver

View File

@@ -1,43 +0,0 @@
name: "Run e2e"
description: "Run e2e"
inputs:
options:
description: 'Options'
required: true
type: string
test-runner:
description: 'Test runner'
required: false
type: string
default: 'protractor'
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: |
./node_modules/.bin/tsc -p "./e2e/protractor/$E2E_TSCONFIG" || exit 1;
npm start > /dev/null &\
if [ ${{ inputs.test-runner }} == "playwright" ]; then
echo "Running playwright tests with options ${{ inputs.options }}"
sleep 90
npx nx run ${{ inputs.options }}-e2e:e2e
else
echo "Running protractor tests with options ${{ inputs.options }}"
echo "./node_modules/.bin/protractor \"./protractor.conf.js\" ${{ inputs.options }} || exit 1"
./node_modules/.bin/protractor "./protractor.conf.js" ${{ inputs.options }} $E2E_PROTRACTOR_OPTS || exit 1
fi
- name: Upload E2Es results
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.artifact-name }}
path: e2e-output/

View File

@@ -9,11 +9,8 @@ runs:
run: |
echo "BUILD_OPTS=--configuration=production,e2e" >> $GITHUB_ENV
echo "TEST_OPTS=" >> $GITHUB_ENV
echo "E2E_PROTRACTOR_OPTS=" >> $GITHUB_ENV
echo "E2E_TSCONFIG=tsconfig.e2e.json" >> $GITHUB_ENV
echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
echo "SMART_RUNNER_DIRECTORY=.protractor-smartrunner" >> $GITHUB_ENV
echo "BASE_HASH=.protractor-smartrunner" >> $GITHUB_ENV
echo "HEAD_HASH=HEAD" >> $GITHUB_ENV
- uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@v1.35.0

View File

@@ -151,8 +151,6 @@ jobs:
- name: Before e2e
uses: ./.github/actions/before-e2e
with:
e2e-protractor: false
- name: before playwright
shell: bash