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

test: Mocked incoming call causing unit test intermittence (#35151)

parent 16239d94
No related branches found
Tags 6.10.0-rc.7
No related merge requests found
import { mockAppRoot } from '@rocket.chat/mock-providers';
import { render, screen, waitFor } from '@testing-library/react';
import { render, screen } from '@testing-library/react';
import VideoConfPopups from './VideoConfPopups';
import { createFakeRoom } from '../../../../../../tests/mocks/data';
......@@ -18,6 +18,5 @@ test('should render video conference incoming popup', async () => {
.build(),
});
await waitFor(() => screen.findByRole('dialog'));
expect(screen.getByRole('dialog')).toBeInTheDocument();
expect(await screen.findByRole('dialog')).toBeInTheDocument();
});
......@@ -26,6 +26,6 @@ export function createFakeIncomingCall({ rid }: { rid: IRoom['_id'] }) {
rid,
uid,
callId,
dismissed: faker.helpers.arrayElement([true, false]),
dismissed: false,
};
}
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