Skip to content

Commit

Permalink
fix- testing fix for failing testcase on git pipeline for taskdetail …
Browse files Browse the repository at this point in the history
…title and desc should not with same values case

Signed-off-by: Aneena John Xavier <[email protected]>
  • Loading branch information
Aneena John Xavier committed Oct 25, 2023
1 parent ea8b848 commit 873f1eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions __tests__/Unit/Components/Tasks/TaskDetails.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,12 @@ describe('TaskDetails Page', () => {
fireEvent.change(textareaElement, {
target: { name: 'title', value: 'test 1 for drag and drop' },
});
const saveButton = await screen.findByRole('button', { name: 'Save' });
fireEvent.click(saveButton);
await waitFor(async () => {
const saveButton = await screen.findByRole('button', {
name: 'Save',
});
fireEvent.click(saveButton);
});
expect(screen.queryByText(/Successfully saved/i)).toBeNull();
});

Expand Down

0 comments on commit 873f1eb

Please sign in to comment.