File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ test('by default logs accessible roles when it fails', () => {
26
26
} )
27
27
28
28
test ( 'when hidden: true logs available roles when it fails' , ( ) => {
29
- const { getByRole} = render ( `<div hidden><h1> Hi</h1></div >` )
29
+ const { getByRole} = render ( `<h1 hidden>Hi</h1>` )
30
30
expect ( ( ) => getByRole ( 'article' , { hidden : true } ) )
31
31
. toThrowErrorMatchingInlineSnapshot ( `
32
32
Unable to find an element with the role "article"
@@ -36,19 +36,19 @@ test('when hidden: true logs available roles when it fails', () => {
36
36
heading:
37
37
38
38
Name "Hi":
39
- <h1 />
39
+ <h1
40
+ hidden=""
41
+ />
40
42
41
43
--------------------------------------------------
42
44
43
45
Ignored nodes: comments, script, style
44
46
<div>
45
- <div
47
+ <h1
46
48
hidden=""
47
49
>
48
- <h1>
49
- Hi
50
- </h1>
51
- </div>
50
+ Hi
51
+ </h1>
52
52
</div>
53
53
` )
54
54
} )
You can’t perform that action at this time.
0 commit comments