Skip to content

Commit 119433f

Browse files
author
Mark Skelton
committed
feat: Initial release!
1 parent 43ff6e2 commit 119433f

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

snippets.json

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
{
22
"Playwright describe": {
3-
"prefix": "desc",
3+
"prefix": "pw-describe",
44
"body": ["test.describe('$1', () => {", "\t$0", "})", ""]
55
},
66
"Playwright test": {
7-
"prefix": "test",
7+
"prefix": "pw-test",
88
"body": ["test('$1', async ({ ${2:page} }) => {", "\t$0", "})", ""]
9+
},
10+
"Playwright test.use": {
11+
"prefix": "pw-use",
12+
"body": ["test.use({ $0 })", ""]
13+
},
14+
"Playwright test.step": {
15+
"prefix": "pw-step",
16+
"body": ["await test.step('$1', async () => {", "\t$0", "})", ""]
17+
},
18+
"Playwright beforeEach": {
19+
"prefix": "pw-beforeEach",
20+
"body": ["test.beforeEach(async ({ ${1:page} }) => {", "\t$0", "})", ""]
21+
},
22+
"Playwright afterEach": {
23+
"prefix": "pw-afterEach",
24+
"body": ["test.afterEach(async ({ ${1:page} }) => {", "\t$0", "})", ""]
925
}
1026
}

0 commit comments

Comments
 (0)