Skip to content

Commit 1830e7f

Browse files
authored
test: Flaky useDecryptedMessage - should handle E2EE messages with attachments but no description (RocketChat#36425)
1 parent 162411c commit 1830e7f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/meteor/client/hooks/useDecryptedMessage.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ describe('useDecryptedMessage', () => {
8080
expect(result.current).toBe('E2E_message_encrypted_placeholder');
8181
});
8282

83-
expect(result.current).toBe('Message_with_attachment');
83+
await waitFor(() => {
84+
expect(result.current).toBe('Message_with_attachment');
85+
});
86+
8487
expect(e2e.decryptMessage).toHaveBeenCalledWith(message);
8588
});
8689
});

0 commit comments

Comments
 (0)