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:
commit
dcad4c161f
1 changed files with 2 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue