You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…library#17)
**What**: Add the following methods
- queryByText
- getByText
- queryByPlaceholderText
- getByPlaceholderText
- queryByLabelText
- getByLabelText
**Why**: Closestesting-library#16
These will really improve the usability of this module. These also align much better with the guiding principles 👍
**How**:
- Created a `queries.js` file where we have all the logic for the queries and their associated getter functions
- Migrate tests where it makes sense
- Update docs considerably.
**Checklist**:
* [x] Documentation
* [x] Tests
* [x] Ready to be merged <!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
* [ ] Added myself to contributors table N/A
There's a block of code used by vue-testing-library, react-testing-library and in the tests here:
I propose adding a
bindQueriesToElement
utility function to encapsulate this code.The text was updated successfully, but these errors were encountered: