Make feature flags specs compatible w/ BootstrapVue 2

parent 7cf959d6
...@@ -24,6 +24,8 @@ describe('Configure Feature Flags Modal', () => { ...@@ -24,6 +24,8 @@ describe('Configure Feature Flags Modal', () => {
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
propsData, propsData,
localVue, localVue,
sync: false,
attachToDocument: true,
}); });
}); });
...@@ -41,7 +43,9 @@ describe('Configure Feature Flags Modal', () => { ...@@ -41,7 +43,9 @@ describe('Configure Feature Flags Modal', () => {
it('should be hidden if the user cannot rotate tokens', () => { it('should be hidden if the user cannot rotate tokens', () => {
wrapper.setProps({ canUserRotateToken: false }); wrapper.setProps({ canUserRotateToken: false });
expect(wrapper.find('.js-ff-rotate-token-button').exists()).toBe(false); return wrapper.vm.$nextTick(() => {
expect(wrapper.find('.js-ff-rotate-token-button').exists()).toBe(false);
});
}); });
}); });
......
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