Commit 22301a81 authored by Clement Ho's avatar Clement Ho

Merge branch '13144-operation-dashboard-delete-icon-tooltip-should-not-say-title' into 'master'

fix: Make operation dashboard delete icon tooltip say "Remove Card"

See merge request gitlab-org/gitlab-ee!14899
parents 4f787440 1c8a6969
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
<gl-button <gl-button
v-gl-tooltip v-gl-tooltip
class="js-remove-button bg-transparent border-0 p-0 text-secondary" class="js-remove-button bg-transparent border-0 p-0 text-secondary"
title="title" :title="title"
@click="onRemove" @click="onRemove"
> >
<icon name="remove" /> <icon name="remove" />
......
---
title: 'fix: operation dashboard delete icon tooltip title'
merge_request: 14899
author:
type: fixed
...@@ -46,6 +46,12 @@ describe('project header component', () => { ...@@ -46,6 +46,12 @@ describe('project header component', () => {
expect(wrapper.contains('.js-remove-button')).toBe(true); expect(wrapper.contains('.js-remove-button')).toBe(true);
}); });
it('renders correct title for removal icon', () => {
const button = wrapper.find('.js-remove-button');
expect(button.attributes('data-original-title')).toBe('Remove card');
});
it('emits project removal link on click', () => { it('emits project removal link on click', () => {
wrapper.find('.js-remove-button').vm.$emit('click'); wrapper.find('.js-remove-button').vm.$emit('click');
......
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