|
1 | 1 | { |
2 | | - "by.role": { |
3 | | - "prefix": "br", |
| 2 | + "query.role": { |
| 3 | + "prefix": "qr", |
4 | 4 | "body": [ |
5 | 5 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('${2:id}')$0" |
6 | 6 | ], |
7 | 7 | "description": "Role query" |
8 | 8 | }, |
9 | | - "by.role.options": { |
10 | | - "prefix": "bro", |
| 9 | + "query.role.options": { |
| 10 | + "prefix": "qro", |
11 | 11 | "body": [ |
12 | 12 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('${2:id}', {$3})$0" |
13 | 13 | ], |
14 | 14 | "description": "Role query with options" |
15 | 15 | }, |
16 | | - "by.role.options.name": { |
17 | | - "prefix": "bron", |
| 16 | + "query.role.options.name": { |
| 17 | + "prefix": "qron", |
18 | 18 | "body": [ |
19 | 19 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('${2:id}',\t{$3})$0" |
20 | 20 | ], |
21 | 21 | "description": "Role query with name on options" |
22 | 22 | }, |
23 | | - "by.role.checkbox": { |
24 | | - "prefix": "brc", |
| 23 | + "query.role.checkbox": { |
| 24 | + "prefix": "qrc", |
25 | 25 | "body": [ |
26 | 26 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('checkbox')$0" |
27 | 27 | ], |
28 | 28 | "description": "Role checkbox" |
29 | 29 | }, |
30 | | - "by.role.checkbox.checked": { |
31 | | - "prefix": "brcc", |
| 30 | + "query.role.checkbox.checked": { |
| 31 | + "prefix": "qrcc", |
32 | 32 | "body": [ |
33 | 33 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('checkbox', { checked: ${2|true,false|} })$0" |
34 | 34 | ], |
35 | 35 | "description": "Role checkbox checked" |
36 | 36 | }, |
37 | | - "by.role.heading": { |
38 | | - "prefix": "brh", |
| 37 | + "query.role.heading": { |
| 38 | + "prefix": "qrh", |
39 | 39 | "body": [ |
40 | 40 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('heading')$0" |
41 | 41 | ], |
42 | 42 | "description": "Role heading" |
43 | 43 | }, |
44 | | - "by.role.heading.level": { |
45 | | - "prefix": "brhl", |
| 44 | + "query.role.heading.level": { |
| 45 | + "prefix": "qrhl", |
46 | 46 | "body": [ |
47 | 47 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Role('heading', { level: ${2|1,2,3,4,5,6|} })$0" |
48 | 48 | ], |
49 | 49 | "description": "Role heading level" |
50 | 50 | }, |
51 | 51 |
|
52 | | - "by.text": { |
53 | | - "prefix": "bt", |
| 52 | + "query.text": { |
| 53 | + "prefix": "qt", |
54 | 54 | "body": [ |
55 | 55 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text($2)$0" |
56 | 56 | ], |
57 | 57 | "description": "Text query" |
58 | 58 | }, |
59 | | - "by.text.full": { |
60 | | - "prefix": "btf", |
| 59 | + "query.text.full": { |
| 60 | + "prefix": "qtf", |
61 | 61 | "body": [ |
62 | 62 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text('${2:Text Match}')$0" |
63 | 63 | ], |
64 | 64 | "description": "Text query full string match" |
65 | 65 | }, |
66 | | - "by.text.ignore": { |
67 | | - "prefix": "bti", |
| 66 | + "query.text.ignore": { |
| 67 | + "prefix": "qti", |
68 | 68 | "body": [ |
69 | 69 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text('${2:text match}', {ignore: false})$0" |
70 | 70 | ], |
71 | 71 | "description": "Text query full string ignore case" |
72 | 72 | }, |
73 | | - "by.text.substring": { |
74 | | - "prefix": "bts", |
| 73 | + "query.text.substring": { |
| 74 | + "prefix": "qts", |
75 | 75 | "body": [ |
76 | 76 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text('${2:ext Matc}', {exact: false})$0" |
77 | 77 | ], |
78 | 78 | "description": "Text query substring match" |
79 | 79 | }, |
80 | | - "by.text.substring+ignore": { |
81 | | - "prefix": "btsi", |
| 80 | + "query.text.substring+ignore": { |
| 81 | + "prefix": "qtsi", |
82 | 82 | "body": [ |
83 | 83 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text('${2:ext matc}', {exact: false, ignore: false})$0" |
84 | 84 | ], |
85 | 85 | "description": "Text query substring match ignore case" |
86 | 86 | }, |
87 | | - "by.text.startWith": { |
88 | | - "prefix": "btsw", |
| 87 | + "query.text.startWith": { |
| 88 | + "prefix": "qtsw", |
89 | 89 | "body": [ |
90 | 90 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text((content) => content.startsWith('${2:Text}'))$0" |
91 | 91 | ], |
92 | 92 | "description": "Text query start with match" |
93 | 93 | }, |
94 | | - "by.text.element.startWith": { |
95 | | - "prefix": "btesw", |
| 94 | + "query.text.element.startWith": { |
| 95 | + "prefix": "qtesw", |
96 | 96 | "body": [ |
97 | 97 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text((content, element) => {", |
98 | 98 | "\tconst tag = element.tagName.toLowerCase() === '${2:div}'", |
|
101 | 101 | ], |
102 | 102 | "description": "Text query start with match on specific element" |
103 | 103 | }, |
104 | | - "by.text.endWith": { |
105 | | - "prefix": "btew", |
| 104 | + "query.text.endWith": { |
| 105 | + "prefix": "qtew", |
106 | 106 | "body": [ |
107 | 107 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text((content) => content.endsWith('${2:Match}'))$0" |
108 | 108 | ], |
109 | 109 | "description": "Text query end with match" |
110 | 110 | }, |
111 | | - "by.text.element.endWith": { |
112 | | - "prefix": "bteew", |
| 111 | + "query.text.element.endWith": { |
| 112 | + "prefix": "qteew", |
113 | 113 | "body": [ |
114 | 114 | "screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}Text((content, element) => {", |
115 | 115 | "\tconst tag = element.tagName.toLowerCase() === '${2:div}'", |
|
0 commit comments