-
Notifications
You must be signed in to change notification settings - Fork 15.7k
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
docs: update Playwright automated-testing guide #41081
Conversation
unnecessary browser downloads when testing an Electron app. | ||
|
||
```sh npm2yarn | ||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install --save-dev playwright |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't install the browsers automatically anymore, so the environment variable is not required.
Updating ours: microsoft/playwright#29121
See the announcement: https://playwright.dev/docs/release-notes#breaking-changes-playwright-no-longer-downloads-browsers-automatically
[Playwright's releases][playwright-releases] page to learn about | ||
changes that might affect the code below. | ||
::: | ||
|
||
:::info Using third-party test runners |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We discourage other test-runners and removed the guide a couple of releases ago.
### Write your tests | ||
|
||
Playwright launches your app in development mode through the `_electron.launch` API. | ||
To point this API to your Electron app, you can pass the path to your main process | ||
entry point (here, it is `main.js`). | ||
|
||
```js {5} @ts-nocheck | ||
const { _electron: electron } = require('playwright') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@playwright/test
re-exports everything inside the playwright
package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
No Release Notes |
I have automatically backported this PR to "26-x-y", please check out #41095 |
I have automatically backported this PR to "27-x-y", please check out #41096 |
I have automatically backported this PR to "28-x-y", please check out #41097 |
I have automatically backported this PR to "29-x-y", please check out #41098 |
Description of Change
This PR refreshes the Playwright automated-testing guide for 2024. Relevant comments are attached on the files tab.
cc @codebytere
Checklist
Release Notes
Notes: none