Commit 76459b4d authored by Lukas Eipert's avatar Lukas Eipert

Properly wait for dropdown to be open in spec

Instead of relying on Vue.nextTick we are now utilizing the `shown`
event emitted by bootstrap-vue
parent 80ec5e10
...@@ -66,7 +66,9 @@ describe('Filter component', () => { ...@@ -66,7 +66,9 @@ describe('Filter component', () => {
describe('when the dropdown is open', () => { describe('when the dropdown is open', () => {
beforeEach(done => { beforeEach(done => {
vm.$el.querySelector('.dropdown-toggle').click(); vm.$el.querySelector('.dropdown-toggle').click();
vm.$nextTick(done); vm.$on('bv::dropdown::shown', () => {
done();
});
}); });
it('should keep the menu open after clicking on an item', done => { it('should keep the menu open after clicking on an item', done => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment