We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10674d commit e39302fCopy full SHA for e39302f
package/src/__tests__/offline-support/offline-feature.js
@@ -520,11 +520,9 @@ export const Generic = () => {
520
useMockedApis(chatClient, [queryChannelsApi(channels)]);
521
522
renderComponent();
523
- await waitFor(async () => {
524
- act(() => dispatchConnectionChangedEvent(chatClient));
525
- await act(
526
- async () => await chatClient.offlineDb.syncManager.invokeSyncStatusListeners(true),
527
- );
+ act(() => dispatchConnectionChangedEvent(chatClient));
+ await act(async () => await chatClient.offlineDb.syncManager.invokeSyncStatusListeners(true));
+ await waitFor(() => {
528
expect(screen.getByTestId('channel-list')).toBeTruthy();
529
});
530
0 commit comments