Skip to content

Commit

Permalink
Merge pull request #1081 from eclipse-tractusx/chore/xxx-fix-frontend…
Browse files Browse the repository at this point in the history
…-e2e-tests

chore(e2e): xxx adjust cypress action version
  • Loading branch information
ds-mwesener authored Jun 20, 2024
2 parents 3a4b787 + fe79f55 commit 31044f7
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/e2e-tests-xray_frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,29 @@ jobs:
with:
node-version: 20.x

- name: Install Angular CLI
run: npm install -g @angular/cli

- name: Run yarn install
uses: Borales/actions-yarn@v5
with:
cmd: install # will run `yarn install` command
dir: frontend

- name: Start Frontend Application
working-directory: frontend
run: |
npm run start:auth:e2ea &
sleep 60 &&
curl http://localhost:4200 -I
- name: Cypress run all tests
uses: cypress-io/[email protected] # use the explicit version number
with:
start: npm run start:auth:e2ea
wait-on: "http://localhost:4200"
wait-on-timeout: 120
browser: chrome
working-directory: frontend
# using wait-on parameter causes "Error: connect ECONNREFUSED 127.0.0.1:4200"
env:
CYPRESS_SUPERVISOR_LOGIN: ${{ secrets.TRACE_X_SUPERVISOR_LOGIN }}
CYPRESS_SUPERVISOR_PW: ${{ secrets.TRACE_X_SUPERVISOR_PW }}
Expand Down

0 comments on commit 31044f7

Please sign in to comment.