diff --git a/src/components/App/App.spec.tsx b/src/components/App/App.spec.tsx index c23f8e6..88fa695 100644 --- a/src/components/App/App.spec.tsx +++ b/src/components/App/App.spec.tsx @@ -1,4 +1,4 @@ -import { screen, cleanup, render, act } from '@testing-library/react'; +import { screen, render, act } from '@testing-library/react'; import { App } from './App'; import { mockOidcForUser, mockOidcFailed } from '../CustomHooks/useAuth'; import { describe, expect, it } from 'vitest'; @@ -12,7 +12,7 @@ describe('Component display', () => { render(); }); - expect(await screen.findByText(D.surveyList)); + expect(await screen.findByText(D.surveyList, {}, { timeout: 20000 })); }); it('Component is not displayed ', async () => {