Merge branch 'ealcantara-mock-dropdown-show-event' into 'master'

Emit dropdown show event in boards_selector test

See merge request gitlab-org/gitlab-ce!31255
This commit is contained in:
Mike Greiling 2019-07-30 21:28:34 +00:00
commit dcad4c161f

View file

@ -76,7 +76,8 @@ describe('BoardsSelector', () => {
document.querySelector('.js-boards-selector'),
);
vm.$el.querySelector('.js-dropdown-toggle').click();
// Emits gl-dropdown show event to simulate the dropdown is opened at initialization time
vm.$children[0].$emit('show');
Promise.all([allBoardsResponse, recentBoardsResponse])
.then(() => vm.$nextTick())