diff --git a/cypress/utils/table.js b/cypress/utils/table.js index 7794fff9..14822c52 100644 --- a/cypress/utils/table.js +++ b/cypress/utils/table.js @@ -37,7 +37,7 @@ export const itHasTableFunctionsDisabled = () => { }; export const itHasActiveFilter = (filterName, filterValue) => { - it.only(`has ${filterName}: ${filterValue} filter active by default`, () => { + it(`has ${filterName}: ${filterValue} filter active by default`, () => { cy.get('.pf-v5-c-chip-group__label').should('have.text', filterName); cy.get('.pf-v5-c-chip-group__main ul').should('have.text', filterValue); }); diff --git a/src/Components/SmartComponents/CveList/CveListTable.cy.js b/src/Components/SmartComponents/CveList/CveListTable.cy.js index 9b2c3a54..7060bb6d 100644 --- a/src/Components/SmartComponents/CveList/CveListTable.cy.js +++ b/src/Components/SmartComponents/CveList/CveListTable.cy.js @@ -168,7 +168,7 @@ describe('CveListTable without items', () => { it('shows correct empty state depending on whether filters are applied or not', () => { cy.contains('No matching CVEs found').should('exist'); - cy.get('.ins-c-chip-filters .pf-c-chip button').click(); + cy.get('.ins-c-chip-filters .pf-v5-c-chip button').click(); cy.contains('No matching CVEs found').should('exist'); cy.contains('Reset filter').should('exist'); diff --git a/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable with items exists and matches screenshot #0.png b/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable with items exists and matches screenshot #0.png index ae1a0138..b6bb9ec4 100644 Binary files a/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable with items exists and matches screenshot #0.png and b/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable with items exists and matches screenshot #0.png differ diff --git a/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable without items exists and matches screenshot #0.png b/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable without items exists and matches screenshot #0.png index 8f3952d9..dcefdcfc 100644 Binary files a/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable without items exists and matches screenshot #0.png and b/src/Components/SmartComponents/CveList/__image_snapshots__/CveListTable without items exists and matches screenshot #0.png differ diff --git a/src/Helpers/constants.js b/src/Helpers/constants.js index c28c3287..b59f1c78 100644 --- a/src/Helpers/constants.js +++ b/src/Helpers/constants.js @@ -172,6 +172,10 @@ export const CVE_LIST_TABLE_COLUMNS = [ title: 'Exposed clusters', sortParam: 'clusters_exposed', }, + { + title: 'Exposed images', + sortParam: 'images_exposed', + }, ]; export const CLUSTER_LIST_TABLE_COLUMNS = [ @@ -290,6 +294,9 @@ export const CVE_LIST_TABLE_MAPPER = (row) => ({ {row.clusters_exposed} , + + {row.images_exposed} + , ], expandableContent: createCveDescription(row), });