Ivan - Frontend - Update menu tests [skip ci]

This commit is contained in:
ivan 2016-09-15 11:36:48 -03:00
parent 7bad36f107
commit 75a839dea7
1 changed files with 3 additions and 1 deletions

View File

@ -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]));
});