Commit 5781636d authored by Frédéric Caplette's avatar Frédéric Caplette

Merge branch 'fix-popover-on-pipeline-dismissal' into 'master'

fix: Fix incorrect il8n reference for Vulnerability Dismissal

See merge request gitlab-org/gitlab!78692
parents 97d7a956 5cd6952f
......@@ -124,9 +124,9 @@ export default {
v-if="isDismissed"
key="undo-dismiss"
v-gl-tooltip
:aria-label="$options.i18n.undoDismiss"
:aria-label="$options.i18n.revertDismissVulnerability"
:loading="isDismissingVulnerability"
:title="$options.i18n.undoDismiss"
:title="$options.i18n.revertDismissVulnerability"
class="js-undo-dismiss"
variant="warning"
category="secondary"
......
......@@ -67,6 +67,10 @@ describe('Security Dashboard Action Buttons', () => {
expect(findMoreInfoButton().exists()).toBe(true);
});
it('should render the correct tooltip', () => {
expect(findMoreInfoButton().attributes('title')).toBe(i18n.moreInfo);
});
it('should emit an `setModalData` event and open the modal when clicked', async () => {
await findMoreInfoButton().trigger('click');
......@@ -129,6 +133,12 @@ describe('Security Dashboard Action Buttons', () => {
expect(findDismissVulnerabilityButton().exists()).toBe(true);
});
it('should render the correct tooltip', () => {
expect(findDismissVulnerabilityButton().attributes('title')).toBe(
i18n.dismissVulnerability,
);
});
it('should emit an `dismissVulnerability` event when clicked', async () => {
await findDismissVulnerabilityButton().trigger('click');
......@@ -183,5 +193,9 @@ describe('Security Dashboard Action Buttons', () => {
it('should render the undo dismiss button', () => {
expect(findUndoDismissButton().exists()).toBe(true);
});
it('should render the correct tooltip', () => {
expect(findUndoDismissButton().attributes('title')).toBe(i18n.revertDismissVulnerability);
});
});
});
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