diff --git a/.vscode/settings.json b/.vscode/settings.json index 1328677..290317a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,24 +1,23 @@ { "cSpell.words": [ "beus", + "brc", + "brcc", + "brh", + "brhl", + "bro", + "bron", + "bteew", + "btesw", + "btew", + "btf", + "bti", + "bts", + "btsi", + "btsw", "deinsoftware", "Equiman", - "gabr", - "gabro", - "gbrc", - "gbrcc", - "gbrh", - "gbrhl", - "gbro", - "gbteew", - "gbtesw", - "gbtew", - "gbtf", - "gbti", - "gbts", - "gbtsi", - "gbtsw", - "github", + "ithub", "itrh", "itue", "matc", @@ -26,6 +25,8 @@ "rewi", "rswi", "sltp", + "SWPM", + "testid", "volta" ], "markdownlint.config": { diff --git a/CHANGELOG.md b/CHANGELOG.md index eecef9e..6e356ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,17 @@ Fixed for any bug fixes. Security to invite users to upgrade in case of vulnerabilities. --> +## 0.0.6 - 2023/04/17 + +### Added + +- cheat sheet helper section on README +- wait for snippets + +### Changed + +- snippets with multiple search variants to avoid repetition + ## 0.0.5 - 2023/04/16 ### Added diff --git a/README.md b/README.md index 0ac61f7..b1da5e0 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,13 @@ The quick and easy way to create and use Testing Library with [VS Code](https:// - [Extension Manager](#extension-manager) - [Marketplace](#marketplace) - [Supported Languages](#supported-languages) +- [Cheat Sheet](#cheat-sheet) - [Snippets](#snippets) - [Import](#import) - [User Event](#user-event) - [Queries](#queries) - [Regex](#regex) + - [Wait](#wait) - [Keyboard](#keyboard) - [Settings](#settings) - [About](#about) @@ -68,6 +70,32 @@ Open the extension manager with ctrl+shift+X (W --- +## Cheat Sheet + +| Search Variants | Result | +| ---------------- | --------------------------------------------- | +| `getBy`... | `Element` or `Error` | +| `getAllBy`... | `Element[]` or `Error` | +| `queryBy`... | `Element` or `null` | +| `queryAllBy`... | `Element[]` or `null` | +| `findBy`... | `Promise` or `Promise` | +| `findAllBy`... | `Promise` or `Promise` | + +| Search Types | Result | +| --------------------- | --------------------------------------------- | +| ...`Role` | `
` or [Aria Roles](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques#roles) | +| ...`LabelText` | `