Commit 707b3d84 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'upgrade-bootstrap-vue/specs-update-feature-flags' into 'master'

Make feature flags specs compatible w/ BootstrapVue 2

See merge request gitlab-org/gitlab!20498
parents 8fbc6fad 0c3911df
......@@ -24,6 +24,8 @@ describe('Configure Feature Flags Modal', () => {
wrapper = shallowMount(Component, {
propsData,
localVue,
sync: false,
attachToDocument: true,
});
});
......@@ -41,7 +43,9 @@ describe('Configure Feature Flags Modal', () => {
it('should be hidden if the user cannot rotate tokens', () => {
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