Closed
Description
(re-filed from testing-library/dom-testing-library#200)
Problem description:
As a user, I would like quick access to the API documentation.
Sidebar at: https://testing-library.com/docs/api-queries
The sidebar lists all of the queries that are available, and is an easy reference when I'm deep in the middle of writing tests. However, the getAll
functions are not explicitly listed. Since I'm writing tests, I'm looking to quickly get the information I need to accomplish my task, and missed the notices and sub-paragraphs about the getAll
functions.
As a new user, I wrote the following in a test, since I didn't realize that these convenience functions existed.
verticalIndicators.querySelectorAll('[data-testid="vertical-indicator-line"]')
Suggested solution:
List all available API methods in the sidebar.