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
exports[`getByLabelText query will throw the custom error returned by config.getElementError 1`] =`"My custom error: Unable to find a label with the text of: TEST QUERY"`;
4
+
5
+
exports[`getByText query will throw the custom error returned by config.getElementError 1`] =`"My custom error: Unable to find an element with the text: TEST QUERY. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible."`;
`Found a label with the text of: ${text}, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.`,
109
109
container,
110
110
)
111
111
}else{
112
-
throwgetElementError(
112
+
throwgetConfig().getElementError(
113
113
`Unable to find a label with the text of: ${text}`,
`${message}\n\n(If this is intentional, then use the \`*AllBy*\` variant of the query (like \`queryAllByText\`, \`getAllByText\`, or \`findAllByText\`)).`,
12
8
container,
13
9
)
@@ -59,7 +55,10 @@ function makeGetAllQuery(allQuery, getMissingError) {
0 commit comments