fix tests

This commit is contained in:
Gabriel Borlea 2023-03-02 13:45:06 +02:00
parent 6b1b14754e
commit 1082b6965a
4 changed files with 12 additions and 7 deletions

View File

@ -272,7 +272,8 @@ function MeetingParticipantItem({
)}
<ParticipantActionEllipsis
accessibilityLabel = { participantActionEllipsisLabel }
onClick = { onContextMenu } />
onClick = { onContextMenu }
participantID = { _participantID } />
</>
}

View File

@ -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;

View File

@ -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: {

View File

@ -53,6 +53,7 @@ const AskToUnmuteButton = ({ buttonType, participantID }: Props) => {
accessibilityLabel = { text }
icon = { icon }
onClick = { _onClick }
testId = { `unmute-${buttonType}-${participantID}` }
text = { text } />
);
};