|
@@ -13,6 +13,7 @@ import {
|
13
|
13
|
} from '../../media';
|
14
|
14
|
import { prefetch } from '../../../mobile/image-cache';
|
15
|
15
|
import { Container, TintedView } from '../../react';
|
|
16
|
+import { TestHint } from '../../testing/components';
|
16
|
17
|
import { getTrackByMediaTypeAndParticipant } from '../../tracks';
|
17
|
18
|
|
18
|
19
|
import Avatar from './Avatar';
|
|
@@ -106,6 +107,14 @@ type Props = {
|
106
|
107
|
*/
|
107
|
108
|
t: Function,
|
108
|
109
|
|
|
110
|
+ /**
|
|
111
|
+ * The test hint id which can be used to locate the {@code ParticipantView}
|
|
112
|
+ * on the jitsi-meet-torture side. If not provided, the
|
|
113
|
+ * {@code participantId} with the following format will be used:
|
|
114
|
+ * {@code `org.jitsi.meet.Participant#${participantId}`}
|
|
115
|
+ */
|
|
116
|
+ testHintId: ?string,
|
|
117
|
+
|
109
|
118
|
/**
|
110
|
119
|
* Indicates if the connectivity info label should be shown, if appropriate.
|
111
|
120
|
* It will be shown in case the connection is interrupted.
|
|
@@ -227,6 +236,11 @@ class ParticipantView extends Component<Props> {
|
227
|
236
|
|| connectionStatus
|
228
|
237
|
=== JitsiParticipantConnectionStatus.INTERRUPTED;
|
229
|
238
|
|
|
239
|
+ const testHintId
|
|
240
|
+ = this.props.testHintId
|
|
241
|
+ ? this.props.testHintId
|
|
242
|
+ : `org.jitsi.meet.Participant#${this.props.participantId}`;
|
|
243
|
+
|
230
|
244
|
return (
|
231
|
245
|
<Container
|
232
|
246
|
onClick = { renderVideo ? undefined : onPress }
|
|
@@ -236,6 +250,11 @@ class ParticipantView extends Component<Props> {
|
236
|
250
|
}}
|
237
|
251
|
touchFeedback = { false }>
|
238
|
252
|
|
|
253
|
+ <TestHint
|
|
254
|
+ id = { testHintId }
|
|
255
|
+ onPress = { onPress }
|
|
256
|
+ value = '' />
|
|
257
|
+
|
239
|
258
|
{ renderVideo
|
240
|
259
|
&& <VideoTrack
|
241
|
260
|
onPress = { renderVideo ? onPress : undefined }
|