Skip to content

Consider listing getAll queries explicitly in the API documentation #25

Closed
@gregtatum

Description

@gregtatum

(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
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions