Commit 6fc4a1bd authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch 'upgrade-bootstrap-vue/specs-update-environment-dashboards' into 'master'

Make EE environments dashboards specs compatible w/ BootstrapVue 2

See merge request gitlab-org/gitlab!19908
parents 7f1f1bd7 f51f7c51
...@@ -28,6 +28,8 @@ describe('Environment Header', () => { ...@@ -28,6 +28,8 @@ describe('Environment Header', () => {
describe('renders name and link to app', () => { describe('renders name and link to app', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
propsData, propsData,
localVue, localVue,
}); });
...@@ -63,6 +65,8 @@ describe('Environment Header', () => { ...@@ -63,6 +65,8 @@ describe('Environment Header', () => {
propsData.environment.name = 'review/testing'; propsData.environment.name = 'review/testing';
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
propsData, propsData,
localVue, localVue,
}); });
...@@ -90,6 +94,8 @@ describe('Environment Header', () => { ...@@ -90,6 +94,8 @@ describe('Environment Header', () => {
propsData.hasErrors = true; propsData.hasErrors = true;
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
propsData, propsData,
localVue, localVue,
}); });
...@@ -105,6 +111,8 @@ describe('Environment Header', () => { ...@@ -105,6 +111,8 @@ describe('Environment Header', () => {
propsData.hasPipelineFailed = true; propsData.hasPipelineFailed = true;
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
propsData, propsData,
localVue, localVue,
}); });
......
...@@ -17,6 +17,8 @@ describe('Environment', () => { ...@@ -17,6 +17,8 @@ describe('Environment', () => {
environment, environment,
}; };
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
localVue, localVue,
propsData, propsData,
}); });
...@@ -94,6 +96,8 @@ describe('Environment', () => { ...@@ -94,6 +96,8 @@ describe('Environment', () => {
}, },
}; };
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
localVue, localVue,
propsData, propsData,
}); });
...@@ -112,6 +116,8 @@ describe('Environment', () => { ...@@ -112,6 +116,8 @@ describe('Environment', () => {
}, },
}; };
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
localVue, localVue,
propsData, propsData,
}); });
......
...@@ -25,6 +25,8 @@ describe('Project Header', () => { ...@@ -25,6 +25,8 @@ describe('Project Header', () => {
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(Component, { wrapper = shallowMount(Component, {
sync: false,
attachToDocument: true,
propsData, propsData,
localVue, localVue,
}); });
......
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