diff --git a/Dockerfile.e2e b/Dockerfile.e2e index 91269f8d83..6443cab16c 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 4c7731fd0c..4eb7692ca7 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, });