diff --git a/Dockerfile b/Dockerfile index 228e5a367..cc3289689 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,7 @@ ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright RUN addgroup --system --gid 1001 nodejs RUN adduser --system --uid 1001 nextjs RUN set -x \ - && apk add --no-cache curl \ + && apk add --no-cache curl libc6-compat \ && npm install -g pnpm RUN echo {} > package.json diff --git a/package.json b/package.json index 41cadd011..6252c5450 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "postbuild": "node scripts/postbuild.js", "test": "vitest run", "test:watch": "vitest", - "install-heatmap": "playwright install chromium", + "install-heatmap": "playwright install chromium --no-shell", "test:e2e": "playwright test", "test:e2e:ui": "playwright test --ui", "seed-data": "tsx scripts/seed-data.ts", diff --git a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts index de5b02375..6d837cae9 100644 --- a/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts +++ b/src/queries/sql/heatmap/ensureHeatmapSnapshot.ts @@ -571,7 +571,10 @@ async function captureSnapshot( pageW?: number, ): Promise { const { chromium } = await import('@playwright/test'); - const browser = await chromium.launch({ headless: true }); + const browser = await chromium.launch({ + channel: 'chromium', + headless: true, + }); const initialViewportW = viewportW; try {