Skip to content

Commit eb5452b

Browse files
committed
Fix tests
1 parent 707583e commit eb5452b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ra-ui-materialui/src/layout/Menu.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ describe('<Menu>', () => {
4343
key: 'c',
4444
code: 'KeyC',
4545
});
46-
expect(await screen.findAllByText('Customers')).toHaveLength(2);
46+
// Only one Customers text as the menu item has a different longer label
47+
await screen.findByText('Customers');
4748
fireEvent.keyDown(global.document, {
4849
key: 'g',
4950
code: 'KeyG',

0 commit comments

Comments
 (0)