Commit ff944b3a authored by samdbeckham's avatar samdbeckham

Adds a test for the fixed vulnerability icon

parent 69031a0d
......@@ -579,7 +579,7 @@ describe('ee merge request widget options', () => {
vm.$el.querySelector('.js-sast-container .report-block-list-issue-description')
.textContent,
),
).toEqual('Container scanning detected 1 new vulnerability');
).toEqual('Container scanning detected 1 new, and 1 fixed vulnerabilities');
done();
}, 0);
});
......
......@@ -223,6 +223,17 @@ describe('Grouped security reports app', () => {
});
}, 0);
});
it('has the success icon for fixed vulnerabilities', done => {
setTimeout(() => {
const icon = vm.$el.querySelector(
'.js-sast-container~.js-plain-element .ic-status_success_borderless',
);
expect(icon).not.toBeNull();
done();
}, 0);
});
});
describe('with the pipelinePath prop', () => {
......
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