Skip to content

Commit

Permalink
change toe expectation between sub-menu and root-item
Browse files Browse the repository at this point in the history
  • Loading branch information
Phan-ThanhDat committed Dec 3, 2019
1 parent 2ee67a5 commit c564957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/items.html
Expand Up @@ -123,7 +123,7 @@
open(menuComponents()[0]);
rootItemRect = menuComponents()[0].getBoundingClientRect();
const subItemRect = menuComponents(subMenu)[0].getBoundingClientRect();
expect(subItemRect.right).to.be.below(rootItemRect.right);
expect(subItemRect.right).to.be.below(rootItemRect.left + rootItemRect.width / 2);
});

it('should open the subMenu on the top if root menu is bottom-aligned', done => {
Expand Down

0 comments on commit c564957

Please sign in to comment.