Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tech] Mise à jour de librairie Puppeteer pour les tests #1219

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/cicd-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,13 @@ jobs:
name: Run E2E multi windows tests
needs: [version, build]
runs-on: ubuntu-22.04
if: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
ENV_PROFILE: ${{needs.version.outputs.ENV_PROFILE}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUPPETEER_SKIP_DOWNLOAD: "true"
MONITORENV_VERSION: ${{ needs.version.outputs.VERSION }}
VERSION: ${{needs.version.outputs.VERSION}}
PUPPETEER_SKIP_DOWNLOAD: "true"
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -243,22 +242,21 @@ jobs:
run: npm ci
working-directory: ./frontend

- name: Install Firefox
run: npx puppeteer browsers install firefox

- name: Run docker images
run: |
make run-infra-for-frontend-tests
until $(curl --output /dev/null --silent --fail "http://localhost:8081/geoserver/wfs?service=WFS&version=1.1.0&request=GetFeature&typename=monitorenv:regulations&outputFormat=application/json&CQL_FILTER=topic=%27Ouest%20Cotentin%20Bivalves%27%20AND%20zone=%27Praires%20Ouest%20cotentin%27"); do printf '.'; sleep 5; done;

- name: Install Firefox
run: npx puppeteer browsers install firefox

- name: Run multi-windows tests
run: npm run test:multi-windows:run
working-directory: ./frontend

push_to_registry:
name: Push to registry
needs: [version, e2e_test]
# needs: [version, e2e_test, e2e_multi_windows_test]
needs: [version, e2e_test, e2e_multi_windows_test]
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/heads/dependabot') == false
env:
Expand Down
Loading
Loading