Commit dcad4c16 authored by Mike Greiling's avatar Mike Greiling

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
parents ad26e9c6 00d33c9d
......@@ -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())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment