Skip to content

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

docs: clarify that the installation command also works for existing projects (#36537) (#36569)

rkrisztian44614baea16c
diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md
index 574754e910..62d9190bf5 100644
--- a/docs/src/intro-js.md
+++ b/docs/src/intro-js.md
@@ -17,7 +17,11 @@ Playwright Test was created specifically to accommodate the needs of end-to-end
## Installing Playwright
-Get started by installing Playwright using npm, yarn or pnpm. Alternatively you can also get started and run your tests using the [VS Code Extension](./getting-started-vscode.md).
+Get started by installing Playwright using one of the following methods.
+
+### Using npm, yarn or pnpm
+
+The command below either initializes a new project with Playwright, or adds Playwright setup to your current project.
<Tabs
groupId="js-package-manager"
@@ -54,13 +58,16 @@ pnpm create playwright
</Tabs>
-
Run the install command and select the following to get started:
- Choose between TypeScript or JavaScript (default is TypeScript)
- - Name of your Tests folder (default is tests or e2e if you already have a tests folder in your project)
+ - Name of your Tests folder (default is `tests`, or `e2e` if you already have a `tests` folder in your project)
- Add a GitHub Actions workflow to easily run tests on CI
- Install Playwright browsers (default is true)
+### Using the VS Code Extension
+
+Alternatively you can also get started and run your tests using the [VS Code Extension](./getting-started-vscode.md).
+
## What's Installed
Playwright will download the browsers needed as well as create the following files.