Skip to content

Commit 685892d

Browse files
authored
docs(intro-js): reference to create-playwright (microsoft#10516)
1 parent b8b6c7a commit 685892d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/src/intro-js.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,23 @@ Playwright Test was created specifically to accommodate the needs of the end-to-
2424

2525
Playwright has its own test runner for end-to-end tests, we call it Playwright Test.
2626

27+
### Using init command
28+
29+
The easiest way to get started with Playwright Test is to run the init command.
30+
31+
```bash
32+
# Run from your project's root directory
33+
npm init playwright
34+
# Or create a new project
35+
npm init playwright new-project
36+
```
37+
38+
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.
39+
40+
### Manually
41+
42+
Add dependency and install browsers.
43+
2744
```bash
2845
npm i -D @playwright/test
2946
# install supported browsers

0 commit comments

Comments
 (0)