diff --git a/.github/workflows/cicd-app.yml b/.github/workflows/cicd-app.yml index d22625ce71..3012baadd4 100644 --- a/.github/workflows/cicd-app.yml +++ b/.github/workflows/cicd-app.yml @@ -217,7 +217,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} MONITORENV_VERSION: ${{ needs.version.outputs.VERSION }} VERSION: ${{needs.version.outputs.VERSION}} - PUPPETEER_SKIP_DOWNLOAD: "true" steps: - name: Checkout uses: actions/checkout@v4 @@ -242,9 +241,6 @@ 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 diff --git a/frontend/puppeteer/e2e/missions.spec.ts b/frontend/puppeteer/e2e/missions.spec.ts index 51da805e99..32cb892472 100644 --- a/frontend/puppeteer/e2e/missions.spec.ts +++ b/frontend/puppeteer/e2e/missions.spec.ts @@ -31,7 +31,7 @@ describe('Missions Form', () => { /* eslint-disable no-restricted-syntax */ for (const page of [pageA, pageB]) { await page.goto(URL) - await wait(1000) + await wait(2000) setPuppeteerEnvironment(page) diff --git a/frontend/puppeteer/setup.ts b/frontend/puppeteer/setup.ts index 04bf78ba0b..10a66487b6 100644 --- a/frontend/puppeteer/setup.ts +++ b/frontend/puppeteer/setup.ts @@ -22,11 +22,11 @@ export default async () => { args: [ `--window-size=${WIDTH},${HEIGHT}`, `--window-position=${WIDTH * i},0`, - '--enable-features=ExperimentalJavaScript' + '--enable-features=ExperimentalJavaScript', + '--enable-gpu' ], defaultViewport: null, - headless: process.env.IS_HEADLESS === 'true', - product: 'firefox' + headless: process.env.IS_HEADLESS === 'true' }) const version = await browser.version() diff --git a/infra/docker/app/Dockerfile b/infra/docker/app/Dockerfile index d97b466dbb..e3f99e62cd 100644 --- a/infra/docker/app/Dockerfile +++ b/infra/docker/app/Dockerfile @@ -34,6 +34,8 @@ FROM node:20-alpine as buildFront ENV DEBIAN_FRONTEND=noninteractive ENV DISABLE_ESLINT_PLUGIN=true +ENV PUPPETEER_DOWNLOAD_BASE_URL=https://storage.googleapis.com/chrome-for-testing-public + ARG VERSION ARG ENV_PROFILE