Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

robertpin829f36e886df
diff --git a/react/features/notifications/components/web/NotificationWithParticipants.js b/react/features/notifications/components/web/NotificationWithParticipants.js
index c180c0ec59..f1e65da628 100644
--- a/react/features/notifications/components/web/NotificationWithParticipants.js
+++ b/react/features/notifications/components/web/NotificationWithParticipants.js
@@ -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 }
diff --git a/react/features/participants-pane/components/web/LobbyParticipantItem.js b/react/features/participants-pane/components/web/LobbyParticipantItem.js
index 3fdf4b0102..ba50c8f65f 100644
--- a/react/features/participants-pane/components/web/LobbyParticipantItem.js
+++ b/react/features/participants-pane/components/web/LobbyParticipantItem.js
@@ -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')}