Skip to content

Commit

Permalink
removing unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
opauloh authored Jun 28, 2024
1 parent 99ed52d commit 39d1d75
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,12 +266,6 @@ describe('<Findings />', () => {
// Loading while checking the status API
expect(screen.getByText(/loading/i)).toBeInTheDocument();

await waitFor(() =>
expect(screen.getByTestId('latest_findings_container')).toBeInTheDocument()
);
// loading findings
await waitFor(() => expect(screen.getByText(/loading results/i)).toBeInTheDocument());

await waitFor(() => expect(screen.getByText(/10 findings/i)).toBeInTheDocument());

screen.getByRole('button', {
Expand Down Expand Up @@ -302,12 +296,6 @@ describe('<Findings />', () => {
// Loading while checking the status API
expect(screen.getByText(/loading/i)).toBeInTheDocument();

await waitFor(() =>
expect(screen.getByTestId('latest_findings_container')).toBeInTheDocument()
);
// loading findings
await waitFor(() => expect(screen.getByText(/loading results/i)).toBeInTheDocument());

await waitFor(() => expect(screen.getByText(/2 findings/i)).toBeInTheDocument());

const passedFindingsButton = screen.getByRole('button', {
Expand Down Expand Up @@ -344,12 +332,6 @@ describe('<Findings />', () => {
// Loading while checking the status API
expect(screen.getByText(/loading/i)).toBeInTheDocument();

await waitFor(() =>
expect(screen.getByTestId('latest_findings_container')).toBeInTheDocument()
);
// loading findings
await waitFor(() => expect(screen.getByText(/loading results/i)).toBeInTheDocument());

await waitFor(() => expect(screen.getByText(/2 findings/i)).toBeInTheDocument());

const failedFindingsButton = screen.getByRole('button', {
Expand Down

0 comments on commit 39d1d75

Please sign in to comment.