Commit ef7d2f1b authored by lauraMon's avatar lauraMon Committed by Tristan Read

Adds tooltip and improves wording

parent ef32342f
......@@ -324,7 +324,12 @@ export default {
</div>
</template>
<template v-slot:ignore="errors">
<gl-button ref="ignoreError" @click="updateIssueStatus(errors.item.id, 'ignored')">
<gl-button
ref="ignoreError"
v-gl-tooltip.hover
:title="__('Ignore')"
@click="updateIssueStatus(errors.item.id, 'ignored')"
>
<gl-icon name="eye-slash" :size="12" />
</gl-button>
</template>
......
import { createLocalVue, mount } from '@vue/test-utils';
import Vuex from 'vuex';
import { GlIcon, GlEmptyState, GlLoadingIcon, GlFormInput, GlPagination } from '@gitlab/ui';
import { GlEmptyState, GlLoadingIcon, GlFormInput, GlPagination } from '@gitlab/ui';
import stubChildren from 'helpers/stub_children';
import ErrorTrackingList from '~/error_tracking/components/error_tracking_list.vue';
import errorsList from './list_mock.json';
......@@ -230,7 +230,7 @@ describe('ErrorTrackingList', () => {
});
});
it('sends the status and error ID', () => {
it('sends the "ignored" status and error ID', () => {
const ignoreButton = wrapper.find({ ref: 'ignoreError' });
ignoreButton.trigger('click');
expect(actions.updateStatus).toHaveBeenCalledWith(
......
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