Skip to content

Commit 7390eaa

Browse files
author
Mark Skelton
committed
feat: Add beforeAll/afterAll snippets
1 parent a63a315 commit 7390eaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

snippets.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@
2222
"Playwright afterEach": {
2323
"prefix": "pw-afterEach",
2424
"body": ["test.afterEach(async ({ ${1:page} }) => {", "\t$0", "})", ""]
25+
},
26+
"Playwright beforeAll": {
27+
"prefix": "pw-beforeAll",
28+
"body": ["test.beforeAll(async ({ ${1:browser} }) => {", "\t$0", "})", ""]
29+
},
30+
"Playwright afterAll": {
31+
"prefix": "pw-afterAll",
32+
"body": ["test.afterAll(async ({ ${1:browser} }) => {", "\t$0", "})", ""]
2533
}
2634
}

0 commit comments

Comments
 (0)