From f6d375f565b61aed4d46a530e6e8e6ee0b53e3fb Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 1 Oct 2020 07:53:33 -0500 Subject: [PATCH] tests: Do not close lobby notifications when testing. --- react/features/lobby/middleware.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/react/features/lobby/middleware.js b/react/features/lobby/middleware.js index e21eaf310..1fd81eec7 100644 --- a/react/features/lobby/middleware.js +++ b/react/features/lobby/middleware.js @@ -4,6 +4,7 @@ import { CONFERENCE_FAILED, CONFERENCE_JOINED } from '../base/conference'; import { JitsiConferenceErrors, JitsiConferenceEvents } from '../base/lib-jitsi-meet'; import { getFirstLoadableAvatarUrl, getParticipantDisplayName } from '../base/participants'; import { MiddlewareRegistry, StateListenerRegistry } from '../base/redux'; +import { isTestModeEnabled } from '../base/testing'; import { NOTIFICATION_TYPE, showNotification } from '../notifications'; import { isPrejoinPageEnabled } from '../prejoin/functions'; @@ -193,5 +194,5 @@ function _maybeSendLobbyNotification(origin, message, { dispatch, getState }) { break; } - dispatch(showNotification(notificationProps, 5000)); + dispatch(showNotification(notificationProps, isTestModeEnabled(getState()) ? undefined : 5000)); }