Commit 9214463a authored by Jay Swain's avatar Jay Swain

Feedback: GlLink => GlButton

parent a8d33267
<script> <script>
import { mapActions } from 'vuex'; import { mapActions } from 'vuex';
import { GlLink } from '@gitlab/ui'; import { GlButton } from '@gitlab/ui';
export default { export default {
components: { components: {
GlLink, GlButton,
}, },
methods: { methods: {
...mapActions(['openDrawer']), ...mapActions(['openDrawer']),
...@@ -14,6 +14,6 @@ export default { ...@@ -14,6 +14,6 @@ export default {
<template> <template>
<li> <li>
<gl-link @click="openDrawer">{{ __("See what's new at GitLab") }}</gl-link> <gl-button variant="link" @click="openDrawer">{{ __("See what's new at GitLab") }}</gl-button>
</li> </li>
</template> </template>
...@@ -312,6 +312,7 @@ ...@@ -312,6 +312,7 @@
> a, > a,
button, button,
.gl-button.btn-link,
.menu-item { .menu-item {
@include dropdown-link; @include dropdown-link;
} }
......
import { createLocalVue, mount } from '@vue/test-utils'; import { createLocalVue, mount } from '@vue/test-utils';
import Vuex from 'vuex'; import Vuex from 'vuex';
import { GlButton } from '@gitlab/ui';
import Trigger from '~/whats_new/components/trigger.vue'; import Trigger from '~/whats_new/components/trigger.vue';
const localVue = createLocalVue(); const localVue = createLocalVue();
...@@ -37,7 +37,7 @@ describe('Trigger', () => { ...@@ -37,7 +37,7 @@ describe('Trigger', () => {
}); });
it('dispatches openDrawer when clicking close', () => { it('dispatches openDrawer when clicking close', () => {
wrapper.find('a').trigger('click'); wrapper.find(GlButton).vm.$emit('click');
expect(actions.openDrawer).toHaveBeenCalled(); expect(actions.openDrawer).toHaveBeenCalled();
}); });
}); });
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