Skip to content

Commit

Permalink
✅ Add timeout to CopyText test
Browse files Browse the repository at this point in the history
  • Loading branch information
mariush2 committed Jan 7, 2025
1 parent 706dc62 commit c231027
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/molecules/InfoElement/CopyText.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ test('Renders label on hover', async () => {

await user.hover(screen.getByText('other'));

await waitFor(() =>
expect(screen.queryByText(/copy/i)).not.toBeInTheDocument()
await waitFor(
() => expect(screen.queryByText(/copy/i)).not.toBeInTheDocument(),
{ timeout: 5000 }
);
});

Expand Down

0 comments on commit c231027

Please sign in to comment.