diff --git a/README.md b/README.md index 4c071b8a02..687d094b89 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ The easiest way to get started with Playwright Test is to run the init command. ```Shell # Run from your project's root directory -npm init playwright +npm init playwright@latest # Or create a new project -npm init playwright new-project +npm init playwright@latest new-project ``` This will create a configuration file, optionally add examples, a GitHub Action workflow and a first test example.spec.ts. You can now jump directly to writing assertions section. diff --git a/docs/src/intro-js.md b/docs/src/intro-js.md index ec0b7f4096..c0e63a8c9f 100644 --- a/docs/src/intro-js.md +++ b/docs/src/intro-js.md @@ -30,9 +30,9 @@ The easiest way to get started with Playwright Test is to run the init command. ```bash # Run from your project's root directory -npm init playwright +npm init playwright@latest # Or create a new project -npm init playwright new-project +npm init playwright@latest new-project ``` This will create a configuration file, optionally add examples, a GitHub Action workflow and a first test `example.spec.ts`. You can now jump directly to [writing assertions](#writing-assertions) section. diff --git a/docs/src/release-notes-js.md b/docs/src/release-notes-js.md index 715754b421..02f707a9a7 100644 --- a/docs/src/release-notes-js.md +++ b/docs/src/release-notes-js.md @@ -124,9 +124,9 @@ The `npm init playwright` command is now generally available for your use: ```sh # Run from your project's root directory -npm init playwright +npm init playwright@latest # Or create a new project -npm init playwright new-project +npm init playwright@latest new-project ``` This will create a Playwright Test configuration file, optionally add examples, a GitHub Action workflow and a first test `example.spec.ts`.