Commit 570f33a2 authored by Mike Greiling's avatar Mike Greiling

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

Make approvals specs compatible w/ BootstrapVue 2

See merge request gitlab-org/gitlab!20492
parents 1f8c149a 8d2a8a43
import Vue from 'vue'; import Vue from 'vue';
import { mount, createLocalVue } from '@vue/test-utils'; import { shallowMount, createLocalVue } from '@vue/test-utils';
import { GlPopover } from '@gitlab/ui'; import { GlPopover, GlLink } from '@gitlab/ui';
import { TEST_HOST } from 'helpers/test_constants'; import { TEST_HOST } from 'helpers/test_constants';
import component from 'ee/approvals/components/approval_check_popover.vue'; import component from 'ee/approvals/components/approval_check_popover.vue';
...@@ -9,12 +9,13 @@ describe('Approval Check Popover', () => { ...@@ -9,12 +9,13 @@ describe('Approval Check Popover', () => {
beforeEach(() => { beforeEach(() => {
const localVue = createLocalVue(); const localVue = createLocalVue();
wrapper = mount(component, { wrapper = shallowMount(component, {
localVue, localVue,
propsData: { propsData: {
title: 'Title', title: 'Title',
}, },
sync: false, sync: false,
attachToDocument: true,
}); });
}); });
...@@ -31,7 +32,7 @@ describe('Approval Check Popover', () => { ...@@ -31,7 +32,7 @@ describe('Approval Check Popover', () => {
expect( expect(
wrapper wrapper
.find(GlPopover) .find(GlPopover)
.find('a') .find(GlLink)
.attributes('href'), .attributes('href'),
).toBe(documentationLink); ).toBe(documentationLink);
}); });
...@@ -42,7 +43,7 @@ describe('Approval Check Popover', () => { ...@@ -42,7 +43,7 @@ describe('Approval Check Popover', () => {
expect( expect(
wrapper wrapper
.find(GlPopover) .find(GlPopover)
.find('a') .find(GlLink)
.exists(), .exists(),
).toBeFalsy(); ).toBeFalsy();
}); });
......
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