diff --git a/test/components/views/settings/tabs/user/SessionManagerTab-test.tsx b/test/components/views/settings/tabs/user/SessionManagerTab-test.tsx index a281708a40..c69e71c32c 100644 --- a/test/components/views/settings/tabs/user/SessionManagerTab-test.tsx +++ b/test/components/views/settings/tabs/user/SessionManagerTab-test.tsx @@ -534,8 +534,11 @@ describe('', () => { ) as Element).getAttribute('aria-disabled')).toEqual("true"); await flushPromisesWithFakeTimers(); - // modal rendering has some weird sleeps - await sleep(100); + + // Modal rendering has some weird sleeps. + // Resetting ourselves twice in the main loop gives modal the chance to settle. + await sleep(0); + await sleep(0); expect(mockClient.deleteMultipleDevices).toHaveBeenCalledWith( [alicesMobileDevice.device_id], undefined,