Skip to content

fix: playwright v1.38 and later update #3967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ WORKDIR /tests
RUN npm i [email protected]
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
Expand Down
4 changes: 4 additions & 0 deletions docs/helpers/Playwright.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
4 changes: 4 additions & 0 deletions lib/helper/Playwright.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
*
Expand Down