Commit 13dc980d authored by Miguel Rincon's avatar Miguel Rincon

Merge branch '229294-issueboard-remove-issue' into 'master'

Migrate issue board remove issue bs button to GlButton

Closes #229294

See merge request gitlab-org/gitlab!39399
parents a33a602f c5d39d18
......@@ -3,8 +3,12 @@ import axios from '~/lib/utils/axios_utils';
import Flash from '../../../flash';
import { __ } from '../../../locale';
import boardsStore from '../../stores/boards_store';
import { GlButton } from '@gitlab/ui';
export default {
components: {
GlButton,
},
props: {
issue: {
type: Object,
......@@ -75,8 +79,8 @@ export default {
</script>
<template>
<div class="block list">
<button class="btn btn-default btn-block" type="button" @click="removeIssue">
<gl-button variant="default" category="secondary" block="block" @click="removeIssue">
{{ __('Remove from board') }}
</button>
</gl-button>
</div>
</template>
import { shallowMount } from '@vue/test-utils';
import { GlButton } from '@gitlab/ui';
import RemoveIssue from '~/boards/components/sidebar/remove_issue.vue';
describe('boards sidebar remove issue', () => {
let wrapper;
const findButton = () => wrapper.find(GlButton);
const createComponent = propsData => {
wrapper = shallowMount(RemoveIssue, {
propsData: {
issue: {},
list: {},
...propsData,
},
});
};
beforeEach(() => {
createComponent();
});
it('renders remove button', () => {
expect(findButton().exists()).toBe(true);
});
});
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