From 9d39644d9402113ded4c91450a72440009caa1d8 Mon Sep 17 00:00:00 2001 From: Nicolas Coden Date: Sun, 29 Apr 2018 14:14:50 +0200 Subject: [PATCH] docs: add back comments in dropdownMenu tests --- test/javascript/components/dropdownMenu.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/javascript/components/dropdownMenu.js b/test/javascript/components/dropdownMenu.js index e98885520..73315ccdb 100644 --- a/test/javascript/components/dropdownMenu.js +++ b/test/javascript/components/dropdownMenu.js @@ -143,6 +143,7 @@ describe('Dropdown Menu', function () { document.activeElement.should.be.equal($html.find('> li:nth-child(1) > ul > li:nth-child(1) > a')[0]); }); it('moves focus to previous sub element on ARROW_UP', function () { + // Open it first plugin._show($html.find('> li:nth-child(1) > ul')); $html.find('> li:nth-child(1) > ul > li:nth-child(2) > a').focus() @@ -151,6 +152,7 @@ describe('Dropdown Menu', function () { document.activeElement.should.be.equal($html.find('> li:nth-child(1) > ul > li:nth-child(1) > a')[0]); }); it('opens child element of sub menu on ARROW_RIGHT', function() { + // Open it first plugin._show($html.find('> li:nth-child(1) > ul')); $html.find('> li:nth-child(1) > ul > li:nth-child(2) > a').focus() -- 2.47.2