Skip to content
Snippets Groups Projects
Unverified Commit 1198e51d authored by Douglas Fabris's avatar Douglas Fabris Committed by GitHub
Browse files

test: waitFor dialog in `VideoConfPopups` unit test (#35141)

parent b704beb4
No related branches found
No related tags found
No related merge requests found
import { mockAppRoot } from '@rocket.chat/mock-providers';
import { render, screen } from '@testing-library/react';
import { render, screen, waitFor } from '@testing-library/react';
import VideoConfPopups from './VideoConfPopups';
import { createFakeRoom } from '../../../../../../tests/mocks/data';
......@@ -18,5 +18,6 @@ test('should render video conference incoming popup', async () => {
.build(),
});
expect(await screen.findByRole('dialog')).toBeInTheDocument();
await waitFor(() => screen.findByRole('dialog'));
expect(screen.getByRole('dialog')).toBeInTheDocument();
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment