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