From 8d923a8b758bf69691d39de251baadd538fdb7fb Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 5 Feb 2025 07:15:10 +0100 Subject: [PATCH] test: refs #6695 e2e run with chrome --- Dockerfile.e2e | 25 +++++++++++++++++-------- cypress.config.js | 3 +++ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/Dockerfile.e2e b/Dockerfile.e2e index 91269f8d8..6443cab16 100644 --- a/Dockerfile.e2e +++ b/Dockerfile.e2e @@ -2,17 +2,29 @@ FROM node:lts-bookworm ENV SHELL bash ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" + RUN npm install -g pnpm@8.15.1 && \ pnpm setup RUN apt-get -y --fix-missing update && \ apt-get -y --fix-missing upgrade && \ - apt-get -y --no-install-recommends install apt-utils libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb && \ - apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get -y --no-install-recommends install \ + apt-utils \ + libgtk2.0-0 \ + libgtk-3-0 \ + libgbm-dev \ + libnotify-dev \ + libnss3 \ + libxss1 \ + libasound2 \ + libxtst6 \ + xauth \ + xvfb \ + chromium \ + && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /app - COPY \ package.json \ .npmrc \ @@ -29,16 +41,13 @@ COPY \ index.html \ jsconfig.json \ quasar.extensions.json \ - # .eslintignore \ - # .eslintrc.js \ postcss.config.js \ cypress.config.js \ ./ -COPY src src COPY test/cypress test/cypress -COPY public public -# RUN npx quasar build +ENV CYPRESS_BROWSER=chrome +ENV CHROME_BIN=/usr/bin/chromium CMD ["npx", "cypress", "run"] diff --git a/cypress.config.js b/cypress.config.js index 4c7731fd0..4eb7692ca 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -44,4 +44,7 @@ export default defineConfig({ viewportWidth: 1280, viewportHeight: 720, }, + experimentalMemoryManagement: true, + defaultCommandTimeout: 10000, + numTestsKeptInMemory: 1000, });