Skip to content

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

misc: Add test ids for prejoin buttons

Vlad Piersec1e76b8b6ea62
diff --git a/react/features/base/premeeting/components/web/ActionButton.js b/react/features/base/premeeting/components/web/ActionButton.js
index b5256f80bf..f753f88486 100644
--- a/react/features/base/premeeting/components/web/ActionButton.js
+++ b/react/features/base/premeeting/components/web/ActionButton.js
@@ -70,6 +70,7 @@ function ActionButton({
{children}
{hasOptions && <div
className = 'options'
+ data-testid = 'prejoin.joinOptions'
onClick = { disabled ? undefined : onOptionsClick }>
<Icon
className = 'icon'
diff --git a/react/features/prejoin/components/Prejoin.js b/react/features/prejoin/components/Prejoin.js
index 6476b64021..a556697223 100644
--- a/react/features/prejoin/components/Prejoin.js
+++ b/react/features/prejoin/components/Prejoin.js
@@ -329,6 +329,7 @@ class Prejoin extends Component<Props, State> {
content = { <div className = 'prejoin-preview-dropdown-btns'>
<div
className = 'prejoin-preview-dropdown-btn'
+ data-testid = 'prejoin.joinWithoutAudio'
onClick = { joinConferenceWithoutAudio }>
<Icon
className = 'prejoin-preview-dropdown-icon'
@@ -341,6 +342,7 @@ class Prejoin extends Component<Props, State> {
onClick = { _showDialog }>
<Icon
className = 'prejoin-preview-dropdown-icon'
+ data-testid = 'prejoin.joinByPhone'
size = { 24 }
src = { IconPhone } />
{ t('prejoin.joinAudioByPhone') }