diff --git a/apps/webapp/playwright.config.ts b/apps/webapp/playwright.config.ts index bdd8646139d..375423ee952 100644 --- a/apps/webapp/playwright.config.ts +++ b/apps/webapp/playwright.config.ts @@ -64,7 +64,7 @@ module.exports = defineConfig({ name: 'Chromium', use: { ...devices['Desktop Chrome'], - permissions: ['notifications'], + permissions: ['notifications', 'clipboard-read', 'clipboard-write'], launchOptions: { args: [ '--use-fake-device-for-media-stream', // Provide fake devices for audio & video device input diff --git a/apps/webapp/src/script/components/UserList/UserList.tsx b/apps/webapp/src/script/components/UserList/UserList.tsx index 6a61c2177f0..daaf6de4457 100644 --- a/apps/webapp/src/script/components/UserList/UserList.tsx +++ b/apps/webapp/src/script/components/UserList/UserList.tsx @@ -17,7 +17,7 @@ * */ -import {ChangeEvent, useCallback, useMemo, useState} from 'react'; +import {ChangeEvent, useCallback, useId, useMemo, useState} from 'react'; import cx from 'classnames'; import {container} from 'tsyringe'; @@ -157,6 +157,8 @@ export const UserList = ({ [highlightedUserIds, isSelectable, isSelfVerified, mode, noSelfInteraction, selectedUsers, teamState], ); + const adminsHeaderId = useId(); + const membersHeaderId = useId(); let content; const showRoles = !!conversation; @@ -188,12 +190,16 @@ export const UserList = ({ <> {(admins.length > 0 || showEmptyAdmin) && ( <> -

+

{t('searchListAdmins', {count: adminCount})}

{admins.length > 0 && ( -