Commit 07cc58d4 authored by Robert Hunt's avatar Robert Hunt

Changed the approval status to use GlLink rather than a direct a tag

parent a7d02e19
<script>
import { GlTooltipDirective } from '@gitlab/ui';
import { GlLink, GlTooltipDirective } from '@gitlab/ui';
import { s__ } from '~/locale';
import CiIcon from '~/vue_shared/components/ci_icon.vue';
......@@ -12,6 +12,7 @@ export default {
},
components: {
CiIcon,
GlLink,
},
props: {
status: {
......@@ -45,9 +46,9 @@ export default {
</script>
<template>
<a
<gl-link
href="https://docs.gitlab.com/ee/user/compliance/compliance_dashboard/#approval-status-and-separation-of-duties"
>
<ci-icon v-gl-tooltip.left="tooltip" class="gl-display-flex" :status="{ icon, group }" />
</a>
</gl-link>
</template>
import { shallowMount } from '@vue/test-utils';
import { GlLink } from '@gitlab/ui';
import ApprovalStatus from 'ee/compliance_dashboard/components/approval_status.vue';
......@@ -6,7 +7,7 @@ describe('ApprovalStatus component', () => {
let wrapper;
const findIcon = () => wrapper.find('.ci-icon');
const findLink = () => wrapper.find('a');
const findLink = () => wrapper.find(GlLink);
const createComponent = status => {
return shallowMount(ApprovalStatus, {
......
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