Skip to content

Commit

Permalink
add query types
Browse files Browse the repository at this point in the history
  • Loading branch information
equiman committed Apr 21, 2023
1 parent 1fbc3fe commit a4f4826
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"itue",
"matc",
"paypal",
"qidf",
"qids",
"qlsq",
"qrc",
"qrcc",
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ All the `░variantBy` cursor start with `getBy` by default, but can be easily c

| Trigger | Result |
| :------- | -------------------------------------------------------- |
| `qtid→` | `screen.░variantByTestId(░)█` |
| `qtidf→` | `screen.░variantByTestId('░Text Match')█` |
| `qtids→` | `screen.░variantByTestId('░ext Matc', {exact: false})█` |
| `qid→` | `screen.░variantByTestId(░)█` |
| `qidf→` | `screen.░variantByTestId('░Text Match')█` |
| `qids→` | `screen.░variantByTestId('░ext Matc', {exact: false})█` |

### Debug

Expand Down
6 changes: 3 additions & 3 deletions snippets/queries.json
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,21 @@
},

"query.TestId": {
"prefix": "qtid",
"prefix": "qid",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId($2)$0"
],
"description": "TestId query"
},
"query.TestId.full": {
"prefix": "qtidf",
"prefix": "qidf",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId('${2:Text Match}')$0"
],
"description": "TestId query full string match"
},
"query.TestId.substring": {
"prefix": "qtids",
"prefix": "qids",
"body": [
"screen.${1|getBy,getAllBy,queryBy,queryAllBy,findBy,findByAll|}TestId('${2:ext Matc}', {exact: false})$0"
],
Expand Down

0 comments on commit a4f4826

Please sign in to comment.