Skip to content

Commit

Permalink
Emit dropdown show event in boards_selector test
Browse files Browse the repository at this point in the history
  • Loading branch information
ealcantara-gitlab committed Jul 30, 2019
1 parent 11f82c8 commit 00d33c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/javascripts/boards/components/boards_selector_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 00d33c9

Please sign in to comment.