@@ -295,7 +295,7 @@ function CallControlComponent(props: CallControlComponentProps) {
295295 button . className +
296296 ( button . disabled || ( consultInitiated && isTelephony ) ? ` ${ button . className } -disabled` : '' )
297297 }
298- data-testid = "ButtonCircle"
298+ data-testid = { button . id === 'end' ? 'call-control:end-call' : button . id }
299299 onPress = { button . onClick }
300300 disabled = { button . disabled || ( consultInitiated && isTelephony ) }
301301 aria-label = { button . tooltip }
@@ -332,6 +332,7 @@ function CallControlComponent(props: CallControlComponentProps) {
332332 postfix-icon = "arrow-down-bold"
333333 type = "button"
334334 role = "button"
335+ data-testid = "call-control:wrapup-button"
335336 >
336337 { WRAP_UP }
337338 </ Button >
@@ -362,6 +363,7 @@ function CallControlComponent(props: CallControlComponentProps) {
362363 info-icon-aria-label = ""
363364 name = ""
364365 className = "wrapup-select"
366+ data-testid = "call-control:wrapup-select"
365367 placeholder = { SELECT }
366368 onChange = { ( event : CustomEvent ) => {
367369 const key = event . detail . value ;
@@ -370,7 +372,11 @@ function CallControlComponent(props: CallControlComponentProps) {
370372 } }
371373 >
372374 { wrapupCodes ?. map ( ( code ) => (
373- < Option key = { code . id } value = { code . id } >
375+ < Option
376+ key = { code . id }
377+ value = { code . id }
378+ data-testid = { `call-control:wrapup-reason-${ code . name . toLowerCase ( ) } ` }
379+ >
374380 { code . name }
375381 </ Option >
376382 ) ) }
@@ -379,7 +385,7 @@ function CallControlComponent(props: CallControlComponentProps) {
379385 onClick = { handleWrapupCall }
380386 variant = "primary"
381387 className = "submit-wrapup-button"
382- data-testid = "submit- wrapup-button "
388+ data-testid = "call-control: wrapup-submit "
383389 aria-label = "Submit wrap-up"
384390 disabled = { selectedWrapupId && selectedWrapupReason ? false : true }
385391 >
0 commit comments