summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorEnrique Alcantara <ealcantara@gitlab.com>2019-07-29 16:15:11 -0400
committerEnrique Alcantara <ealcantara@gitlab.com>2019-07-30 09:29:24 -0400
commit00d33c9d9a05144cebf9f41f870a53d435bb1ffc (patch)
treec173970294561d6cba2d6188e2bc3154721790a6 /spec/javascripts
parent11f82c891ab82620982ef157d3a6783ee56a6997 (diff)
downloadgitlab-ce-00d33c9d9a05144cebf9f41f870a53d435bb1ffc.tar.gz
Emit dropdown show event in boards_selector testealcantara-mock-dropdown-show-event
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/boards/components/boards_selector_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/javascripts/boards/components/boards_selector_spec.js b/spec/javascripts/boards/components/boards_selector_spec.js
index 504bc51778c..473cc0612ea 100644
--- a/spec/javascripts/boards/components/boards_selector_spec.js
+++ b/spec/javascripts/boards/components/boards_selector_spec.js
@@ -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())