{
+ treeItem.focus()
+ })
expect(treeItem).toHaveFocus()
expect(screen.queryByRole('dialog')).not.toBeInTheDocument()
- fireEvent.keyDown(treeItem, {key: 'u', metaKey: true, shiftKey: true})
+ act(() => {
+ fireEvent.keyDown(treeItem, {key: 'u', metaKey: true, shiftKey: true})
+ })
expect(screen.getByRole('dialog')).toBeInTheDocument()
})
diff --git a/packages/react/src/deprecated/ActionList/Group.tsx b/packages/react/src/deprecated/ActionList/Group.tsx
index cbf6769bb50..09a665de419 100644
--- a/packages/react/src/deprecated/ActionList/Group.tsx
+++ b/packages/react/src/deprecated/ActionList/Group.tsx
@@ -30,7 +30,7 @@ export interface GroupProps extends React.ComponentPropsWithoutRef<'div'> {
/**
* Collects related `Items` in an `ActionList`.
*/
-export function Group({header, items, ...props}: GroupProps): JSX.Element {
+export function Group({header, items, groupId: _groupId, ...props}: GroupProps): JSX.Element {
return (
{header && }
diff --git a/packages/react/src/deprecated/ActionList/Item.tsx b/packages/react/src/deprecated/ActionList/Item.tsx
index 26af27b9b78..67c5a5b90cc 100644
--- a/packages/react/src/deprecated/ActionList/Item.tsx
+++ b/packages/react/src/deprecated/ActionList/Item.tsx
@@ -137,6 +137,7 @@ export const Item = React.forwardRef((itemProps, ref) => {
onClick,
id,
className,
+ groupId: _groupId,
...props
} = itemProps
diff --git a/packages/react/src/hooks/__tests__/useSlots.test.tsx b/packages/react/src/hooks/__tests__/useSlots.test.tsx
index 540ba2e4ee7..b5d1c1360f7 100644
--- a/packages/react/src/hooks/__tests__/useSlots.test.tsx
+++ b/packages/react/src/hooks/__tests__/useSlots.test.tsx
@@ -368,6 +368,7 @@ test('extracts wrapped components with slot symbols and conditions', () => {
})
test('prefers direct component type match over slot symbol match', () => {
+ const spy = vi.spyOn(console, 'warn').mockImplementation(() => {})
const calls: Array> = []
const children = [
Direct component,
@@ -401,9 +402,12 @@ test('prefers direct component type match over slot symbol match', () => {
],
]
`)
+ expect(spy).toHaveBeenCalled()
})
test('handles components without slot symbols in mixed scenarios', () => {
+ const spy = vi.spyOn(console, 'warn').mockImplementation(() => {})
+
const calls: Array> = []
const children = [
Component A,
@@ -442,6 +446,7 @@ test('handles components without slot symbols in mixed scenarios', () => {
],
]
`)
+ expect(spy).toHaveBeenCalled()
})
test('handles slot symbol matching with duplicate detection', () => {