Skip to content

Commit

Permalink
ad
Browse files Browse the repository at this point in the history
  • Loading branch information
rchincha committed Dec 15, 2024
1 parent 20a6782 commit 7de8e90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__tests__/TagPage/VulnerabilitiesDetails.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ describe('Vulnerabilties page', () => {
expect(exportAsCSVBtn).toBeInTheDocument();
global.URL.createObjectURL = jest.fn();
await fireEvent.click(exportAsCSVBtn);
expect(await screen.findByTestId('export-csv-menuItem')).not.toBeInTheDocument();
await waitFor(() => expect(screen.findByTestId('export-csv-menuItem')).not.toBeInTheDocument());
fireEvent.click(downloadBtn[0]);
const exportAsExcelBtn = screen.getByText(/xlsx/i);
expect(exportAsExcelBtn).toBeInTheDocument();
Expand Down Expand Up @@ -858,7 +858,7 @@ describe('Vulnerabilties page', () => {
await waitFor(() => expect(screen.getAllByText('Fixed in')).toHaveLength(20));
const collapseListBtn = await screen.findAllByTestId('ViewHeadlineIcon');
fireEvent.click(collapseListBtn[0]);
expect(await screen.findByText('Fixed in')).not.toBeVisible();
await waitFor (() => expect(screen.findByText('Fixed in')).not.toBeVisible());
});

it('should handle fixed CVE query errors', async () => {
Expand Down

0 comments on commit 7de8e90

Please sign in to comment.