fix(lobby) Added data-testid and aria-label used for testing
This commit is contained in:
parent
afbf261f67
commit
829f36e886
|
@ -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 }
|
||||
|
|
|
@ -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')}
|
||||
|
|
Loading…
Reference in New Issue