@@ -41,6 +41,8 @@ import {
4141import { TeamConfig } from '../../models/Team' ;
4242import { TeamService } from '../../services/TeamService' ;
4343
44+ import '../../index.css'
45+
4446// Icon mapping function to convert string icons to FluentUI icons
4547const getIconFromString = ( iconString : string ) : React . ReactNode => {
4648 const iconMap : Record < string , React . ReactNode > = {
@@ -514,7 +516,7 @@ const SettingsButton: React.FC<SettingsButtonProps> = ({
514516 appearance = "subtle"
515517 size = "small"
516518 onClick = { ( e ) => handleDeleteTeam ( team , e ) }
517- style = { { color : '#d13438' } }
519+ className = "delete-team-button"
518520 />
519521 </ Tooltip >
520522 </ div >
@@ -751,16 +753,8 @@ const SettingsButton: React.FC<SettingsButtonProps> = ({
751753 { /* Delete Confirmation Dialog */ }
752754 < Dialog open = { deleteConfirmOpen } onOpenChange = { ( event , data ) => setDeleteConfirmOpen ( data . open ) } >
753755 < DialogSurface >
754- < DialogContent style = { {
755- display : 'flex' ,
756- flexDirection : 'column' ,
757- width : '100%'
758- } } >
759- < DialogBody style = { {
760- display : 'flex' ,
761- flexDirection : 'column' ,
762- width : '100%'
763- } } >
756+ < DialogContent data-testid = "delete-dialog" >
757+ < DialogBody >
764758 < DialogTitle > ⚠️ Delete Team Configuration</ DialogTitle >
765759 < div style = { { marginTop : '16px' , marginBottom : '20px' } } >
766760 < Text style = { { display : 'block' , marginBottom : '16px' } } >
@@ -802,6 +796,7 @@ const SettingsButton: React.FC<SettingsButtonProps> = ({
802796 disabled = { deleteLoading }
803797 style = { { backgroundColor : '#d13438' , color : 'white' } }
804798 onClick = { confirmDeleteTeam }
799+ data-testid = "delete-team-confirm"
805800 >
806801 { deleteLoading ? 'Deleting...' : 'Delete for Everyone' }
807802 </ Button >
0 commit comments