You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-25 17:02:04 +03:00
Fix SessionManagerTab-test (#9291)
This commit is contained in:
@ -534,8 +534,11 @@ describe('<SessionManagerTab />', () => {
|
|||||||
) as Element).getAttribute('aria-disabled')).toEqual("true");
|
) as Element).getAttribute('aria-disabled')).toEqual("true");
|
||||||
|
|
||||||
await flushPromisesWithFakeTimers();
|
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(
|
expect(mockClient.deleteMultipleDevices).toHaveBeenCalledWith(
|
||||||
[alicesMobileDevice.device_id], undefined,
|
[alicesMobileDevice.device_id], undefined,
|
||||||
|
Reference in New Issue
Block a user