Skip to content

Commit dd4eb4c

Browse files
committed
fix: playwright v1.38 and later update
1 parent be7f525 commit dd4eb4c

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

Diff for: Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ WORKDIR /tests
3838
3939
RUN google-chrome --version
4040

41+
# Install playwright browsers
42+
RUN npx playwright install
43+
4144
# Allow to pass argument to codecept run via env variable
4245
ENV CODECEPT_ARGS=""
4346
ENV RUN_MULTIPLE=false

Diff for: docs/helpers/Playwright.md

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ or
2727

2828
npm i playwright-core@^1.18 --save
2929

30+
Breaking Changes: if you use Playwright v1.38 and later, it will no longer download browsers automatically.
31+
32+
Run `npx playwright install` to download browsers after `npm install`.
33+
3034
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.
3135

3236

Diff for: lib/helper/Playwright.js

+4
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ const config = {};
116116
* npm i playwright-core@^1.18 --save
117117
* ```
118118
*
119+
* Breaking Changes: if you use Playwright v1.38 and later, it will no longer download browsers automatically.
120+
*
121+
* Run `npx playwright install` to download browsers after `npm install`.
122+
*
119123
* 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.
120124
*
121125
*

0 commit comments

Comments
 (0)