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
Unable to find an element with the text: LucyRicardo. 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.
Unable to find an element with the text: Lucy Ricardo (normalized from 'Lucy Ricardo'). 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.
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the \`hidden\` option to \`true\`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
106
116
107
-
Ignored nodes: comments, <script />, <style />
117
+
Ignored nodes: comments, script, style
108
118
<div>
109
119
<div />
110
120
</div>
@@ -371,7 +381,7 @@ test('label with no form control', () => {
Found a label with the text of: /alone/, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.
373
383
374
-
Ignored nodes: comments, <script />, <style />
384
+
Ignored nodes: comments, script, style
375
385
<div>
376
386
<label>
377
387
All alone
@@ -389,7 +399,7 @@ test('label with "for" attribute but no form control and fuzzy matcher', () => {
389
399
.toThrowErrorMatchingInlineSnapshot(`
390
400
Found a label with the text of: alone, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.
391
401
392
-
Ignored nodes: comments, <script />, <style />
402
+
Ignored nodes: comments, script, style
393
403
<div>
394
404
<label
395
405
for="foo"
@@ -412,7 +422,7 @@ test('label with children with no form control', () => {
412
422
.toThrowErrorMatchingInlineSnapshot(`
413
423
Found a label with the text of: /alone/, however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.
Found a label with the text of: /Label/, however the element associated with this label (<div />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <div />, you can use aria-label or aria-labelledby instead.
Found a label with the text of: /Label/, however the element associated with this label (<p />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <p />, you can use aria-label or aria-labelledby instead.
Found a label with the text of: , however no form control was found associated to that label. Make sure you're using the "for" attribute or "aria-labelledby" attribute correctly.
557
567
558
-
Ignored nodes: comments, <script />, <style />
568
+
Ignored nodes: comments, script, style
559
569
<div>
560
570
<label />
561
571
</div>
@@ -1092,6 +1102,19 @@ test('the default value for `ignore` can be configured', () => {
1092
1102
expect(noStyle[1].tagName).toBe('DIV')
1093
1103
})
1094
1104
1105
+
test('the default value for `ignore` is used in errors',()=>{
Unable to find an element with the text: /hello/i. 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.
1112
+
1113
+
Ignored nodes: comments, div
1114
+
<div />
1115
+
`)
1116
+
})
1117
+
1095
1118
test('get/query input element by current value',()=>{
@@ -1206,7 +1229,7 @@ test('return a proper error message when no label is found and there is an aria-
1206
1229
.toThrowErrorMatchingInlineSnapshot(`
1207
1230
Unable to find a label with the text of: LucyRicardo
1208
1231
1209
-
Ignored nodes: comments, <script />, <style />
1232
+
Ignored nodes: comments, script, style
1210
1233
<div>
1211
1234
<input
1212
1235
aria-labelledby="not-existing-label"
@@ -1276,7 +1299,7 @@ test('ByText error message ignores not the same elements as configured in `ignor
1276
1299
).toThrowErrorMatchingInlineSnapshot(`
1277
1300
Unable to find an element with the text: .css-selector. 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.
0 commit comments