implement fix for playwright docker build
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -571,7 +571,10 @@ async function captureSnapshot(
|
||||
pageW?: number,
|
||||
): Promise<CaptureResult> {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user