docs: use npm init @latest (#12561)

This commit is contained in:
Max Schmitt 2022-03-07 19:30:03 +01:00 committed by GitHub
parent a2b3d4f570
commit 5ca7858ace
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -26,9 +26,9 @@ The easiest way to get started with Playwright Test is to run the init command.
```Shell ```Shell
# Run from your project's root directory # Run from your project's root directory
npm init playwright npm init playwright@latest
# Or create a new project # 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. 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.

View file

@ -30,9 +30,9 @@ The easiest way to get started with Playwright Test is to run the init command.
```bash ```bash
# Run from your project's root directory # Run from your project's root directory
npm init playwright npm init playwright@latest
# Or create a new project # 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. 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.

View file

@ -124,9 +124,9 @@ The `npm init playwright` command is now generally available for your use:
```sh ```sh
# Run from your project's root directory # Run from your project's root directory
npm init playwright npm init playwright@latest
# Or create a new project # 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`. This will create a Playwright Test configuration file, optionally add examples, a GitHub Action workflow and a first test `example.spec.ts`.