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
"Looks like you are trying to set a heading level to a menu role. Group headings for menu type action lists are for representational purposes, and rendered as divs. Therefore they don't need a heading level.",
"Looks like you are trying to set a heading level to a menu role. Group headings for menu type action lists are for representational purposes, and rendered as divs. Therefore they don't need a heading level.",
43
+
)
44
+
})
43
45
})
44
46
45
47
it('should render the ActionList.GroupHeading component as a heading with the given heading level',async()=>{
it('should throw an error if the trigger element is disabled',()=>{
128
-
expect(()=>{
129
-
HTMLRender(
130
-
<Tooltiptext="Tooltip text"direction="n">
131
-
<Buttondisabled>Delete</Button>
132
-
</Tooltip>,
128
+
withExpectedConsoleError(()=>{
129
+
expect(()=>{
130
+
HTMLRender(
131
+
<Tooltiptext="Tooltip text"direction="n">
132
+
<Buttondisabled>Delete</Button>
133
+
</Tooltip>,
134
+
)
135
+
}).toThrow(
136
+
'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',
133
137
)
134
-
}).toThrow(
135
-
'The `Tooltip` component expects a single React element that contains interactive content. Consider using a `<button>` or equivalent interactive element instead.',
136
-
)
138
+
})
137
139
})
138
140
it('should not throw an error when the trigger element is a button in a fieldset',()=>{
0 commit comments