From da6158625f7c6ddce03c34d45ed5f25b448b7187 Mon Sep 17 00:00:00 2001 From: misha Date: Fri, 16 Oct 2026 16:30:56 +0300 Subject: [PATCH] fix: tests --- .../presentation/video_call_session_cubit_test.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/features/video_calls/presentation/video_call_session_cubit_test.dart b/test/features/video_calls/presentation/video_call_session_cubit_test.dart index 6c39bcd7..a69cf9cd 100644 --- a/test/features/video_calls/presentation/video_call_session_cubit_test.dart +++ b/test/features/video_calls/presentation/video_call_session_cubit_test.dart @@ -175,6 +175,18 @@ void main() { }); test('syncPipUiStateFromSystem skips overlay when call screen is visible', () async { + final mockRoom = MockRoom(); + when(mockManager.room).thenReturn(mockRoom); + when( + mockManager.onCallScreenVisible( + conversationUuid: anyNamed('conversationUuid'), + counterpartName: anyNamed('counterpartName'), + localParticipantName: anyNamed('localParticipantName'), + micEnabled: anyNamed('micEnabled'), + videoEnabled: anyNamed('videoEnabled'), + ), + ).thenAnswer((_) async => true); + cubit.emit( const VideoCallSessionState( conversationUuid: 'uuid',