mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 13:07:46 +00:00
fix: Adds testId for context menu items and ids to some components.
Needed to revive the lobby tests.
This commit is contained in:
@@ -56,6 +56,11 @@ export type Props = {
|
||||
*/
|
||||
onKeyPress?: Function,
|
||||
|
||||
/**
|
||||
* TestId of the element, if any.
|
||||
*/
|
||||
testId?: string,
|
||||
|
||||
/**
|
||||
* Action text.
|
||||
*/
|
||||
@@ -112,6 +117,7 @@ const ContextMenuItem = ({
|
||||
onClick,
|
||||
onKeyDown,
|
||||
onKeyPress,
|
||||
testId,
|
||||
text,
|
||||
textClassName }: Props) => {
|
||||
const styles = useStyles();
|
||||
@@ -126,6 +132,7 @@ const ContextMenuItem = ({
|
||||
disabled && styles.contextMenuItemDisabled,
|
||||
className
|
||||
) }
|
||||
data-testid = { testId }
|
||||
id = { id }
|
||||
key = { text }
|
||||
onClick = { disabled ? undefined : onClick }
|
||||
|
||||
Reference in New Issue
Block a user