From e40d4a48b83356d26ff0fadfe5d34a936769a353 Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Sun, 15 Aug 2021 08:27:18 +0300 Subject: [PATCH] feat(av-moderation) id and aria-label updates for av-moderation test (#9592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(av-moderation) raised hand ask to unmute aria-label * feat(av-moderation) fixed test * feat(av-moderation) added id for notification buttons * feat(av-moderation) fixed lint error * feat(av-moderation) added id for non raised hand participant * feat(av-moderation) added extra id naming for ask to unmute button and participant items * feat(av-moderation) fixed lint errors * feat(av-moderation) changed id to participantID * feat(av-moderation) removed semicolon * squash: Drop unused id for participantItem. * squash: Drop unused fields for raisedHand. Co-authored-by: Дамян Минков --- .../components/web/NotificationButton.js | 14 ++++++++++---- .../components/web/NotificationWithParticipants.js | 2 ++ .../components/AskToUnmuteButton.js | 11 ++++++----- .../components/FooterContextMenu.js | 4 ++-- .../components/ParticipantQuickAction.js | 10 +++++++++- .../components/web/ParticipantItem.js | 1 + 6 files changed, 30 insertions(+), 12 deletions(-) diff --git a/react/features/notifications/components/web/NotificationButton.js b/react/features/notifications/components/web/NotificationButton.js index 27251e8a0..d50523c8d 100644 --- a/react/features/notifications/components/web/NotificationButton.js +++ b/react/features/notifications/components/web/NotificationButton.js @@ -21,14 +21,19 @@ type Props = { className: string, /** - * The `data-testid` used for the button. + * CSS id of the button. */ - testId: string, + id?: string, /** * The participant. */ - participant: Object + participant: Object, + + /** + * The `data-testid` used for the button. + */ + testId: string } /** @@ -36,7 +41,7 @@ type Props = { * * @returns {React$Element<'button'>} */ -export default function({ action, children, className, testId, participant }: Props) { +export default function({ action, children, className, participant, id, testId }: Props) { const dispatch = useDispatch(); const onClick = useCallback(() => dispatch(action(participant.id)), [ dispatch, participant ]); @@ -44,6 +49,7 @@ export default function({ action, children, className, testId, participant }: Pr