-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathqueries.js
64 lines (61 loc) · 1.28 KB
/
queries.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
let theQueries = [
"findAllByLabelText",
"findByLabelText",
"getAllByLabelText",
"getByLabelText",
"queryAllByLabelText",
"queryByLabelText",
"findAllByPlaceholderText",
"findByPlaceholderText",
"getAllByPlaceholderText",
"getByPlaceholderText",
"queryAllByPlaceholderText",
"queryByPlaceholderText",
"findAllByText",
"findByText",
"getAllByText",
"getByText",
"queryAllByText",
"queryByText",
"findAllByDisplayValue",
"findByDisplayValue",
"getAllByDisplayValue",
"getByDisplayValue",
"queryAllByDisplayValue",
"queryByDisplayValue",
"findAllByAltText",
"findByAltText",
"getAllByAltText",
"getByAltText",
"queryAllByAltText",
"queryByAltText",
"findAllByTitle",
"findByTitle",
"getAllByTitle",
"getByTitle",
"queryAllByTitle",
"queryByTitle",
"findAllByRole",
"findByRole",
"getAllByRole",
"getByRole",
"queryAllByRole",
"queryByRole",
"findAllByTestId",
"findByTestId",
"getAllByTestId",
"getByTestId",
"queryAllByTestId",
"queryByTestId",
];
(() => {
try {
const { queries: allQueries } = require("@testing-library/dom");
theQueries = Object.keys(allQueries);
} catch (error) {
if (error.code !== "MODULE_NOT_FOUND") {
throw error;
}
}
})();
export const queries = theQueries;