misc: Add test ids for prejoin buttons

This commit is contained in:
Vlad Piersec 2020-08-18 14:36:32 +03:00 committed by Дамян Минков
parent 55175e2e95
commit 1e76b8b6ea
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ function ActionButton({
{children}
{hasOptions && <div
className = 'options'
data-testid = 'prejoin.joinOptions'
onClick = { disabled ? undefined : onOptionsClick }>
<Icon
className = 'icon'

View File

@ -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') }