From df4a8a708f62eef0bd76b92de344ddf1bc406598 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Wed, 1 Nov 2023 14:44:29 +0100 Subject: [PATCH] fix: playwright v1.38 and later update --- Dockerfile | 3 +++ docs/helpers/Playwright.md | 4 ++++ lib/helper/Playwright.js | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4f3f87b95..b41591c2a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,9 @@ WORKDIR /tests RUN npm i puppeteer@21.1.1 RUN google-chrome --version +# Install playwright browsers +RUN npx playwright install + # Allow to pass argument to codecept run via env variable ENV CODECEPT_ARGS="" ENV RUN_MULTIPLE=false diff --git a/docs/helpers/Playwright.md b/docs/helpers/Playwright.md index cafce65a9..f429b3245 100644 --- a/docs/helpers/Playwright.md +++ b/docs/helpers/Playwright.md @@ -27,6 +27,10 @@ or npm i playwright-core@^1.18 --save +Breaking Changes: if you use Playwright v1.38 and later, it will no longer download browsers automatically. + +Run `npx playwright install` to download browsers after `npm install`. + Using playwright-core package, will prevent the download of browser binaries and allow connecting to an existing browser installation or for connecting to a remote one. diff --git a/lib/helper/Playwright.js b/lib/helper/Playwright.js index b2aa9601a..1e6d5e5b2 100644 --- a/lib/helper/Playwright.js +++ b/lib/helper/Playwright.js @@ -116,6 +116,10 @@ const config = {}; * npm i playwright-core@^1.18 --save * ``` * + * Breaking Changes: if you use Playwright v1.38 and later, it will no longer download browsers automatically. + * + * Run `npx playwright install` to download browsers after `npm install`. + * * Using playwright-core package, will prevent the download of browser binaries and allow connecting to an existing browser installation or for connecting to a remote one. * *