Skip to content

Commit

Permalink
refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vashjs committed Apr 28, 2024
1 parent 40d5ee4 commit 840cdab
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Instance/MoveHoldingContext/MoveHoldingContext.test.js
Expand Up @@ -183,9 +183,7 @@ describe('MoveHoldingContext', () => {

fireEvent.click(confirmBtn);

await waitFor(() => {
expect(screen.queryByText('Loading')).toBeInTheDocument();
});
expect(screen.queryByText('Loading')).toBeInTheDocument();
});

it('should close modal and stop moving when "Cancel" is clicked', async () => {
Expand All @@ -197,9 +195,7 @@ describe('MoveHoldingContext', () => {

fireEvent.click(cancelBtn);

await waitFor(() => {
expect(screen.queryByText('Loading')).not.toBeInTheDocument();
});
expect(screen.queryByText('Loading')).not.toBeInTheDocument();
});
});
});

0 comments on commit 840cdab

Please sign in to comment.