Skip to content

Commit

Permalink
Merge branch 'ealcantara-mock-dropdown-show-event' into 'master'
Browse files Browse the repository at this point in the history
Emit dropdown show event in boards_selector test

See merge request gitlab-org/gitlab-ce!31255
  • Loading branch information
mikegreiling committed Jul 30, 2019
2 parents ad26e9c + 00d33c9 commit dcad4c1
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 dcad4c1

Please sign in to comment.