fix(lobby) Added data-testid and aria-label used for testing

This commit is contained in:
robertpin 2021-10-28 09:47:01 +03:00 committed by vp8x8
parent afbf261f67
commit 829f36e886
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,7 @@ export default function({
{ participants.map(p => (
<li
className = 'knocking-participant'
data-testid = { p.id }
key = { p.id }>
<Avatar
displayName = { p.name }

View File

@ -50,11 +50,15 @@ export const LobbyParticipantItem = ({
videoMediaState = { MEDIA_STATE.NONE }
youText = { t('chat.you') }>
<ParticipantActionButton
aria-label = { `Reject ${p.name}` }
data-testid = { `reject-${id}` }
onClick = { reject }
primary = { false }>
{t('lobby.reject')}
</ParticipantActionButton>
<ParticipantActionButton
aria-label = { `Admit ${p.name}` }
data-testid = { `admit-${id}` }
onClick = { admit }
primary = { true }>
{t('lobby.admit')}