Compare commits
1 Commits
commit-12b
...
commit-6cd
Author | SHA1 | Date | |
---|---|---|---|
6cda89c710 |
@ -574,7 +574,7 @@ describe('Vulnerabilties page', () => {
|
|||||||
fireEvent.click(downloadBtn[0]);
|
fireEvent.click(downloadBtn[0]);
|
||||||
expect(await screen.findByTestId('export-csv-menuItem')).toBeInTheDocument();
|
expect(await screen.findByTestId('export-csv-menuItem')).toBeInTheDocument();
|
||||||
expect(await screen.findByTestId('export-excel-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();
|
expect(exportAsCSVBtn).toBeInTheDocument();
|
||||||
global.URL.createObjectURL = jest.fn();
|
global.URL.createObjectURL = jest.fn();
|
||||||
await fireEvent.click(exportAsCSVBtn);
|
await fireEvent.click(exportAsCSVBtn);
|
||||||
|
@ -315,7 +315,7 @@ function VulnerabilitiesDetails(props) {
|
|||||||
className={classes.popper}
|
className={classes.popper}
|
||||||
data-testid="export-csv-menuItem"
|
data-testid="export-csv-menuItem"
|
||||||
>
|
>
|
||||||
csv
|
CSV
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<Divider sx={{ my: 0.5 }} />
|
<Divider sx={{ my: 0.5 }} />
|
||||||
<MenuItem
|
<MenuItem
|
||||||
|
Reference in New Issue
Block a user