Fix broken specs

parent 8f6c695d
import { mount, shallowMount } from '@vue/test-utils'; import { mount, shallowMount } from '@vue/test-utils';
import ExpandableSection from 'ee/security_configuration/components/expandable_section.vue'; import ExpandableSection from 'ee/security_configuration/components/expandable_section.vue';
import { stubTransition } from 'helpers/stub_transition'; import { stubTransition } from 'helpers/stub_transition';
import waitForPromises from 'helpers/wait_for_promises';
describe('ExpandableSection component', () => { describe('ExpandableSection component', () => {
let wrapper; let wrapper;
...@@ -90,7 +91,8 @@ describe('ExpandableSection component', () => { ...@@ -90,7 +91,8 @@ describe('ExpandableSection component', () => {
}); });
describe('clicking the expand button', () => { describe('clicking the expand button', () => {
beforeEach(() => { beforeEach(async () => {
await waitForPromises();
const button = findButton(); const button = findButton();
button.trigger('click'); button.trigger('click');
return wrapper.vm.$nextTick(); return wrapper.vm.$nextTick();
......
...@@ -44,9 +44,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = ` ...@@ -44,9 +44,7 @@ exports[`Learn GitLab Design A renders correctly 1`] = `
class="progress-bar" class="progress-bar"
role="progressbar" role="progressbar"
style="width: 22.22222222222222%;" style="width: 22.22222222222222%;"
> />
<!---->
</div>
</div> </div>
</div> </div>
......
...@@ -44,9 +44,7 @@ exports[`Learn GitLab Design B renders correctly 1`] = ` ...@@ -44,9 +44,7 @@ exports[`Learn GitLab Design B renders correctly 1`] = `
class="progress-bar" class="progress-bar"
role="progressbar" role="progressbar"
style="width: 22.22222222222222%;" style="width: 22.22222222222222%;"
> />
<!---->
</div>
</div> </div>
</div> </div>
......
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