We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12cb29 commit cd54847Copy full SHA for cd54847
src/config.js
@@ -33,6 +33,7 @@ let config = {
33
},
34
_disableExpensiveErrorDiagnostics: false,
35
computedStyleSupportsPseudoElements: false,
36
+ computeCloseMatches: false,
37
}
38
39
export const DEFAULT_IGNORE_TAGS = 'script, style'
src/queries/test-id.js
@@ -15,7 +15,7 @@ const getMultipleError = (c, id) =>
15
const getMissingError = (
16
c,
17
id,
18
- {computeCloseMatches = false, ...options} = {},
+ {computeCloseMatches = getConfig().computeCloseMatches, ...options} = {},
19
) => {
20
const defaultMessage = `Unable to find an element by: [${getTestIdAttribute()}="${id}"]`
21
0 commit comments