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.
53
+
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 accessible element with the role "LucyRicardo"
94
+
Unable to find an accessible element with the role "LucyRicardo"
95
95
96
96
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
97
97
98
98
Ignored nodes: comments, <script />, <style />
99
99
<div>
100
100
<div />
101
-
</div>"
101
+
</div>
102
102
`)
103
103
})
104
104
@@ -360,14 +360,14 @@ 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.
363
+
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.
364
364
365
365
Ignored nodes: comments, <script />, <style />
366
366
<div>
367
367
<label>
368
368
All alone
369
369
</label>
370
-
</div>"
370
+
</div>
371
371
`)
372
372
})
373
373
@@ -378,7 +378,7 @@ test('label with "for" attribute but no form control and fuzzy matcher', () => {
"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.
381
+
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.
382
382
383
383
Ignored nodes: comments, <script />, <style />
384
384
<div>
@@ -387,7 +387,7 @@ test('label with "for" attribute but no form control and fuzzy matcher', () => {
387
387
>
388
388
All alone label
389
389
</label>
390
-
</div>"
390
+
</div>
391
391
`)
392
392
})
393
393
@@ -401,7 +401,7 @@ test('label with children 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.
404
+
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.
405
405
406
406
Ignored nodes: comments, <script />, <style />
407
407
<div>
@@ -426,7 +426,7 @@ test('label with children with no form control', () => {
"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.
445
+
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 (<span />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <span />, you can use aria-label or aria-labelledby instead.
493
+
Found a label with the text of: /Label/, however the element associated with this label (<span />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <span />, you can use aria-label or aria-labelledby instead.
494
494
495
495
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.
547
+
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.
548
548
549
549
Ignored nodes: comments, <script />, <style />
550
550
<div>
551
551
<label />
552
-
</div>"
552
+
</div>
553
553
`)
554
554
})
555
555
@@ -1183,14 +1183,14 @@ test('return a proper error message when no label is found and there is an aria-
1183
1183
1184
1184
expect(()=>getByLabelText('LucyRicardo'))
1185
1185
.toThrowErrorMatchingInlineSnapshot(`
1186
-
"Unable to find a label with the text of: LucyRicardo
1186
+
Unable to find a label with the text of: LucyRicardo
1187
1187
1188
1188
Ignored nodes: comments, <script />, <style />
1189
1189
<div>
1190
1190
<input
1191
1191
aria-labelledby="not-existing-label"
1192
1192
/>
1193
-
</div>"
1193
+
</div>
1194
1194
`)
1195
1195
})
1196
1196
@@ -1253,7 +1253,7 @@ test('ByText error message ignores not the same elements as configured in `ignor
"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.
1256
+
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.
1257
1257
1258
1258
Ignored nodes: comments, <script />, <style />
1259
1259
<body>
@@ -1266,6 +1266,6 @@ test('ByText error message ignores not the same elements as configured in `ignor
0 commit comments