From 6ea34024c1d1bede65279c36b94b8475d17928f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Wed, 2 Oct 2024 15:27:34 +0200 Subject: [PATCH] test: try to fix puppeteer e2e tests --- package.json | 2 +- test/e2e/puppeteer-default/actor/Dockerfile | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index cf4386376cff..04a5179a9f1c 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "build": "turbo run build && node ./scripts/typescript_fixes.mjs", "ci:build": "turbo run build --cache-dir=\".turbo\" && node ./scripts/typescript_fixes.mjs", "test": "vitest run --silent", - "test:e2e": "node test/e2e/run.mjs", + "test:e2e": "node test/e2e/run.mjs puppeteer-default", "test:full": "cross-env CRAWLEE_DIFFICULT_TESTS=1 vitest run --silent", "coverage": "vitest --coverage", "publish:next": "lerna publish from-package --contents dist --dist-tag next --force-publish", diff --git a/test/e2e/puppeteer-default/actor/Dockerfile b/test/e2e/puppeteer-default/actor/Dockerfile index 1e7718842183..40c5884e15d8 100644 --- a/test/e2e/puppeteer-default/actor/Dockerfile +++ b/test/e2e/puppeteer-default/actor/Dockerfile @@ -1,7 +1,7 @@ -FROM node:20 AS builder +FROM apify/actor-node-puppeteer-chrome:20-beta AS builder -COPY /packages ./packages -COPY /package*.json ./ +COPY --chown=myuser /packages ./packages +COPY --chown=myuser /package*.json ./ RUN npm --quiet set progress=false \ && npm install --only=prod --no-optional --no-audit \ && npm update @@ -9,11 +9,11 @@ RUN npm --quiet set progress=false \ FROM apify/actor-node-puppeteer-chrome:20-beta RUN rm -r node_modules -COPY --from=builder /node_modules ./node_modules -COPY --from=builder /packages ./packages -COPY --from=builder /package*.json ./ -COPY /.actor ./.actor -COPY /main.js ./ +COPY --chown=myuser --from=builder /node_modules ./node_modules +COPY --chown=myuser --from=builder /packages ./packages +COPY --chown=myuser --from=builder /package*.json ./ +COPY --chown=myuser /.actor ./.actor +COPY --chown=myuser /main.js ./ RUN echo "Installed NPM packages:" \ && (npm list --only=prod --no-optional --all || true) \