Emit dropdown show event in boards_selector test

This commit is contained in:
Enrique Alcantara 2019-07-29 16:15:11 -04:00
parent 11f82c891a
commit 00d33c9d9a
No known key found for this signature in database
GPG Key ID: 4D32BDBF4BF2EFD4
1 changed files with 2 additions and 1 deletions

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())