From 3a14eab089eb1f6aeb9eea299399397291332e39 Mon Sep 17 00:00:00 2001 From: Andreea-Lupu Date: Wed, 17 Jan 2024 11:32:10 +0200 Subject: [PATCH] fix: change 'csv' to 'CSV' in the vulnerabilities download options list Signed-off-by: Andreea-Lupu --- src/__tests__/TagPage/VulnerabilitiesDetails.test.js | 2 +- src/components/Tag/Tabs/VulnerabilitiesDetails.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/TagPage/VulnerabilitiesDetails.test.js b/src/__tests__/TagPage/VulnerabilitiesDetails.test.js index 13d3cdff..9345081b 100644 --- a/src/__tests__/TagPage/VulnerabilitiesDetails.test.js +++ b/src/__tests__/TagPage/VulnerabilitiesDetails.test.js @@ -574,7 +574,7 @@ describe('Vulnerabilties page', () => { fireEvent.click(downloadBtn[0]); expect(await screen.findByTestId('export-csv-menuItem')).toBeInTheDocument(); expect(await screen.findByTestId('export-excel-menuItem')).toBeInTheDocument(); - const exportAsCSVBtn = screen.getByText(/csv/i); + const exportAsCSVBtn = screen.getByText(/CSV/i); expect(exportAsCSVBtn).toBeInTheDocument(); global.URL.createObjectURL = jest.fn(); await fireEvent.click(exportAsCSVBtn); diff --git a/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx b/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx index 1872f6a0..fee7fa81 100644 --- a/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx +++ b/src/components/Tag/Tabs/VulnerabilitiesDetails.jsx @@ -315,7 +315,7 @@ function VulnerabilitiesDetails(props) { className={classes.popper} data-testid="export-csv-menuItem" > - csv + CSV