From 75a839dea7fea51ccd5e8bd8fdbd8ef97580e6b3 Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 15 Sep 2016 11:36:48 -0300 Subject: [PATCH] Ivan - Frontend - Update menu tests [skip ci] --- client/src/core-components/__tests__/menu-test.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/core-components/__tests__/menu-test.js b/client/src/core-components/__tests__/menu-test.js index dfab6c97..0884a955 100644 --- a/client/src/core-components/__tests__/menu-test.js +++ b/client/src/core-components/__tests__/menu-test.js @@ -37,7 +37,8 @@ describe('Menu component', function () { {content: 'Second Item', icon: 'ICON_2'}, {content: 'Third Item', icon: 'ICON_3'}, {content: 'Fourth Item', icon: 'ICON_4'} - ] + ], + itemsRole: 'some_role' }); expect(items.length).to.equal(4); @@ -47,6 +48,7 @@ describe('Menu component', function () { expect(items[3].textContent).to.equal('Fourth Item'); items.forEach((item, index) => { + expect(item.getAttribute('role')).to.equal('some_role'); expect(item.className).to.contain('menu__list-item'); expect(item.childNodes[0]).to.equal(ReactDOM.findDOMNode(icons[index])); });