Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(intro-js): add pnpm reference (#16948)

Max Schmitte6a28eb55ce7
diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md
index 77a93b09dc..954dda2b6f 100644
--- a/docs/src/intro-js.md
+++ b/docs/src/intro-js.md
@@ -21,7 +21,8 @@ Get started by installing Playwright using npm or yarn. Alternatively you can al
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
- {label: 'yarn', value: 'yarn'}
+ {label: 'yarn', value: 'yarn'},
+ {label: 'pnpm', value: 'pnpm'}
]
}>
<TabItem value="npm">
@@ -38,6 +39,14 @@ npm init playwright@latest
yarn create playwright
```
+</TabItem>
+
+<TabItem value="pnpm">
+
+```bash
+pnpm dlx create-playwright
+```
+
</TabItem>
</Tabs>
@@ -92,4 +101,4 @@ npx playwright show-report
- [Write tests using web first assertions, page fixtures and locators](./writing-tests.md)
- [Run single tests, multiple tests, headed mode](./running-tests.md)
- [Generate tests with Codegen](./codegen.md)
-- [See a trace of your tests](./trace-viewer-intro.md)
\ No newline at end of file
+- [See a trace of your tests](./trace-viewer-intro.md)