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.
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
92
99
100
+
Ignored nodes: comments, <script />, <style />
93
101
<div>
94
102
<div />
95
103
</div>"
@@ -354,6 +362,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.
356
364
365
+
Ignored nodes: comments, <script />, <style />
357
366
<div>
358
367
<label>
359
368
All alone
@@ -371,6 +380,7 @@ test('label with "for" attribute but no form control and fuzzy matcher', () => {
371
380
.toThrowErrorMatchingInlineSnapshot(`
372
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.
373
382
383
+
Ignored nodes: comments, <script />, <style />
374
384
<div>
375
385
<label
376
386
for="foo"
@@ -393,6 +403,7 @@ test('label with children with no form control', () => {
393
403
.toThrowErrorMatchingInlineSnapshot(`
394
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.
"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.
535
548
549
+
Ignored nodes: comments, <script />, <style />
536
550
<div>
537
551
<label />
538
552
</div>"
@@ -1221,6 +1235,7 @@ test('return a proper error message when no label is found and there is an aria-
1221
1235
.toThrowErrorMatchingInlineSnapshot(`
1222
1236
"Unable to find a label with the text of: LucyRicardo
@@ -58,6 +60,7 @@ test('logs error when there are no accessible roles', () => {
58
60
59
61
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
60
62
63
+
Ignored nodes: comments, <script />, <style />
61
64
<div>
62
65
<div />
63
66
</div>"
@@ -72,6 +75,7 @@ test('logs a different error if inaccessible roles should be included', () => {
72
75
73
76
There are no available roles.
74
77
78
+
Ignored nodes: comments, <script />, <style />
75
79
<div>
76
80
<div />
77
81
</div>"
@@ -86,6 +90,7 @@ test('by default excludes elements that have the html hidden attribute or any of
86
90
87
91
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
88
92
93
+
Ignored nodes: comments, <script />, <style />
89
94
<div>
90
95
<div
91
96
hidden=""
@@ -106,6 +111,7 @@ test('by default excludes elements which have display: none or any of their pare
106
111
107
112
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
108
113
114
+
Ignored nodes: comments, <script />, <style />
109
115
<div>
110
116
<div
111
117
style="display: none;"
@@ -128,6 +134,7 @@ test('by default excludes elements which have visibility hidden', () => {
128
134
129
135
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
130
136
137
+
Ignored nodes: comments, <script />, <style />
131
138
<div>
132
139
<div>
133
140
<ul
@@ -152,6 +159,7 @@ test('by default excludes elements which have aria-hidden="true" or any of their
152
159
153
160
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
154
161
162
+
Ignored nodes: comments, <script />, <style />
155
163
<div>
156
164
<div
157
165
aria-hidden="true"
@@ -241,6 +249,7 @@ Here are the accessible roles:
0 commit comments