Skip to content

Commit

Permalink
Simplifies Tasks test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wjames111 committed Sep 26, 2024
1 parent c9ee5fd commit c70a65d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pages/accountLists/[accountListId]/tasks/Tasks.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,11 @@ describe('tasks page', () => {
</MocksProviders>,
);
await waitFor(() => expect(getByText('Test Person')).toBeInTheDocument());
expect(getByTestId('task-checkbox-1')).toBeInTheDocument();
userEvent.click(getByTestId('task-checkbox-1'));
expect(getByText('Showing 17')).toBeInTheDocument();
expect(getByTestId('DeleteIconButton-1')).toBeInTheDocument();
userEvent.click(getByTestId('DeleteIconButton-1'));
// This is needed for some reason
userEvent.click(getByTestId('DeleteIconButton-1'));
expect(getByText('Confirm')).toBeInTheDocument();
userEvent.click(getByText('Yes'));
await waitFor(() => {
expect(mockEnqueue).toHaveBeenCalledWith(`Task deleted successfully`, {
Expand Down

0 comments on commit c70a65d

Please sign in to comment.