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