Skip to content

Commit 811f085

Browse files
author
Mark Skelton
committed
feat: Add docs to the readme
1 parent 7d4b5f7 commit 811f085

File tree

2 files changed

+65
-1
lines changed

2 files changed

+65
-1
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true
4+
}

README.md

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,64 @@
1111

1212
The following snippets are provided by this package. If you have ideas of other snippets that would be helpful, please [open an issue](https://github.com/mskelton/vscode-playwright-test-snippets/issues/new).
1313

14-
TODO
14+
### `pw-describe→`
15+
16+
```ts
17+
test.describe('$1', () => {
18+
$0
19+
})
20+
```
21+
22+
### `pw-test→`
23+
24+
```ts
25+
test('$1', async ({ page }) => {
26+
$0
27+
})
28+
```
29+
30+
### `pw-beforeEach→`
31+
32+
```ts
33+
test.beforeEach(async ({ page }) => {
34+
$0
35+
})
36+
```
37+
38+
### `pw-afterEach→`
39+
40+
```ts
41+
test.afterEach(async ({ page }) => {
42+
$0
43+
})
44+
```
45+
46+
### `pw-beforeAll→`
47+
48+
```ts
49+
test.beforeAll(async ({ browser }) => {
50+
$0
51+
})
52+
```
53+
54+
### `pw-afterAll→`
55+
56+
```ts
57+
test.afterAll(async ({ browser }) => {
58+
$0
59+
})
60+
```
61+
62+
### `pw-step→`
63+
64+
```ts
65+
await test.step('$1', async () => {
66+
$0
67+
})
68+
```
69+
70+
### `pw-use→`
71+
72+
```ts
73+
test.use({ $0 })
74+
```

0 commit comments

Comments
 (0)