Fix broken specs

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