|
1 | 1 | { |
2 | | - "Playwright describe": { |
| 2 | + "Playwright describe block": { |
3 | 3 | "prefix": "pw-describe", |
4 | 4 | "body": ["test.describe('$1', () => {", "\t$0", "})", ""] |
5 | 5 | }, |
6 | | - "Playwright test": { |
| 6 | + "Playwright test block": { |
7 | 7 | "prefix": "pw-test", |
8 | 8 | "body": ["test('$1', async ({ ${2:page} }) => {", "\t$0", "})", ""] |
9 | 9 | }, |
10 | | - "Playwright test.use": { |
| 10 | + "Playwright test.use block": { |
11 | 11 | "prefix": "pw-use", |
12 | 12 | "body": ["test.use({ $0 })", ""] |
13 | 13 | }, |
14 | | - "Playwright test.step": { |
| 14 | + "Playwright test.step block": { |
15 | 15 | "prefix": "pw-step", |
16 | 16 | "body": ["await test.step('$1', async () => {", "\t$0", "})", ""] |
17 | 17 | }, |
18 | | - "Playwright beforeEach": { |
| 18 | + "Playwright beforeEach block": { |
19 | 19 | "prefix": "pw-beforeEach", |
20 | 20 | "body": ["test.beforeEach(async ({ ${1:page} }) => {", "\t$0", "})", ""] |
21 | 21 | }, |
22 | | - "Playwright afterEach": { |
| 22 | + "Playwright afterEach block": { |
23 | 23 | "prefix": "pw-afterEach", |
24 | 24 | "body": ["test.afterEach(async ({ ${1:page} }) => {", "\t$0", "})", ""] |
25 | 25 | }, |
26 | | - "Playwright beforeAll": { |
| 26 | + "Playwright beforeAll block": { |
27 | 27 | "prefix": "pw-beforeAll", |
28 | 28 | "body": ["test.beforeAll(async ({ ${1:browser} }) => {", "\t$0", "})", ""] |
29 | 29 | }, |
30 | | - "Playwright afterAll": { |
| 30 | + "Playwright afterAll block": { |
31 | 31 | "prefix": "pw-afterAll", |
32 | 32 | "body": ["test.afterAll(async ({ ${1:browser} }) => {", "\t$0", "})", ""] |
| 33 | + }, |
| 34 | + "Lariat collection": { |
| 35 | + "prefix": "pw-collection", |
| 36 | + "body": [ |
| 37 | + "import Collection from \"lariat\"", |
| 38 | + "", |
| 39 | + "export class ${TM_FILENAME_BASE/(^|-)([A-z0-9])/${2:/upcase}/g} extends Collection {", |
| 40 | + " $0", |
| 41 | + "}" |
| 42 | + ] |
33 | 43 | } |
34 | 44 | } |
0 commit comments