diff --git a/src/components/Menu/Menu.unit.test.tsx b/src/components/Menu/Menu.unit.test.tsx index 958d7d8c1c..019b4bde67 100644 --- a/src/components/Menu/Menu.unit.test.tsx +++ b/src/components/Menu/Menu.unit.test.tsx @@ -127,6 +127,16 @@ describe('
', () => { expect(element.getAttribute('role')).toBe('menu'); }); + it('should have role of menu when isGroupRole is undefined', () => { + expect.assertions(1); + + const element = mount() + .find(Menu) + .getDOMNode(); + + expect(element.getAttribute('role')).toBe('menu'); + }); + it('should have provided style when style is provided', () => { expect.assertions(1);