We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 707583e commit eb5452bCopy full SHA for eb5452b
packages/ra-ui-materialui/src/layout/Menu.spec.tsx
@@ -43,7 +43,8 @@ describe('<Menu>', () => {
43
key: 'c',
44
code: 'KeyC',
45
});
46
- expect(await screen.findAllByText('Customers')).toHaveLength(2);
+ // Only one Customers text as the menu item has a different longer label
47
+ await screen.findByText('Customers');
48
fireEvent.keyDown(global.document, {
49
key: 'g',
50
code: 'KeyG',
0 commit comments