fix tests
This commit is contained in:
parent
6b1b14754e
commit
1082b6965a
|
@ -272,7 +272,8 @@ function MeetingParticipantItem({
|
|||
)}
|
||||
<ParticipantActionEllipsis
|
||||
accessibilityLabel = { participantActionEllipsisLabel }
|
||||
onClick = { onContextMenu } />
|
||||
onClick = { onContextMenu }
|
||||
participantID = { _participantID } />
|
||||
</>
|
||||
}
|
||||
|
||||
|
|
|
@ -14,14 +14,17 @@ interface IProps {
|
|||
* Click handler function.
|
||||
*/
|
||||
onClick: () => void;
|
||||
|
||||
participantID: string;
|
||||
}
|
||||
|
||||
const ParticipantActionEllipsis = ({ accessibilityLabel, onClick }: IProps) => (
|
||||
const ParticipantActionEllipsis = ({ accessibilityLabel, onClick, participantID }: IProps) => (
|
||||
<Button
|
||||
accessibilityLabel = { accessibilityLabel }
|
||||
icon = { IconDotsHorizontal }
|
||||
onClick = { onClick }
|
||||
size = 'small' />
|
||||
size = 'small'
|
||||
testId = { `participant-more-options-${participantID}` } />
|
||||
);
|
||||
|
||||
export default ParticipantActionEllipsis;
|
||||
|
|
|
@ -87,7 +87,7 @@ const ParticipantQuickAction = ({
|
|||
label = { t('participantsPane.actions.mute') }
|
||||
onClick = { muteAudio(participantID) }
|
||||
size = 'small'
|
||||
testId = { `mute-${participantID}` } />
|
||||
testId = { `mute-audio-${participantID}` } />
|
||||
);
|
||||
}
|
||||
case QUICK_ACTION_BUTTON.ASK_TO_UNMUTE: {
|
||||
|
@ -98,7 +98,7 @@ const ParticipantQuickAction = ({
|
|||
label = { t('participantsPane.actions.askUnmute') }
|
||||
onClick = { askToUnmute }
|
||||
size = 'small'
|
||||
testId = { `unmute-${participantID}` } />
|
||||
testId = { `unmute-audio-${participantID}` } />
|
||||
);
|
||||
}
|
||||
case QUICK_ACTION_BUTTON.ALLOW_VIDEO: {
|
||||
|
@ -109,7 +109,7 @@ const ParticipantQuickAction = ({
|
|||
label = { t('participantsPane.actions.allowVideo') }
|
||||
onClick = { allowVideo }
|
||||
size = 'small'
|
||||
testId = { `unmute-${participantID}` } />
|
||||
testId = { `unmute-video-${participantID}` } />
|
||||
);
|
||||
}
|
||||
case QUICK_ACTION_BUTTON.STOP_VIDEO: {
|
||||
|
@ -120,7 +120,7 @@ const ParticipantQuickAction = ({
|
|||
label = { t('participantsPane.actions.stopVideo') }
|
||||
onClick = { stopVideo(participantID) }
|
||||
size = 'small'
|
||||
testId = { `mute-${participantID}` } />
|
||||
testId = { `mute-video-${participantID}` } />
|
||||
);
|
||||
}
|
||||
default: {
|
||||
|
|
|
@ -53,6 +53,7 @@ const AskToUnmuteButton = ({ buttonType, participantID }: Props) => {
|
|||
accessibilityLabel = { text }
|
||||
icon = { icon }
|
||||
onClick = { _onClick }
|
||||
testId = { `unmute-${buttonType}-${participantID}` }
|
||||
text = { text } />
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue