docs: use npm init @latest (#12561)
This commit is contained in:
Родитель
a2b3d4f570
Коммит
5ca7858ace
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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`.
|
||||
|
|
Загрузка…
Ссылка в новой задаче