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', () => {
2626} )
2727
2828test ( '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>` )
3030 expect ( ( ) => getByRole ( 'article' , { hidden : true } ) )
3131 . toThrowErrorMatchingInlineSnapshot ( `
3232 Unable to find an element with the role "article"
@@ -36,19 +36,19 @@ test('when hidden: true logs available roles when it fails', () => {
3636 heading:
3737
3838 Name "Hi":
39- <h1 />
39+ <h1
40+ hidden=""
41+ />
4042
4143 --------------------------------------------------
4244
4345 Ignored nodes: comments, script, style
4446 <div>
45- <div
47+ <h1
4648 hidden=""
4749 >
48- <h1>
49- Hi
50- </h1>
51- </div>
50+ Hi
51+ </h1>
5252 </div>
5353 ` )
5454} )
You can’t perform that action at this time.
0 commit comments