Commit 52dc5f1d authored by Uday Aggarwal's avatar Uday Aggarwal Committed by Kushal Pandya

changed the default value of checkbox to false from a dynamic value on first page load

parent 2bbc4d78
......@@ -103,6 +103,9 @@ export default {
return Object.keys(this.filters).length > 0;
},
hasSelectedAllVulnerabilities() {
if (!this.vulnerabilities.length) {
return false;
}
return this.numOfSelectedVulnerabilities === this.vulnerabilities.length;
},
numOfSelectedVulnerabilities() {
......
---
title: changed the default value of checkbox to false from a dynamic value on first
page load
merge_request: 36646
author: Uday Aggarwal @uday.agg97
type: fixed
......@@ -318,6 +318,11 @@ describe('Vulnerability list component', () => {
expect(findDashboardHasNoVulnerabilities().exists()).toEqual(true);
expect(findFiltersProducedNoResults().exists()).toEqual(false);
});
it('should not show the vulnerability check-all checkbox as checked with no vulnerabilities', () => {
expect(findDataCell('vulnerability-checkbox-all').exists()).toBe(true);
expect(findDataCell('vulnerability-checkbox-all').element.checked).toBe(false);
});
});
describe('with no vulnerabilities when there are filters', () => {
......
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