@@ -89,7 +89,7 @@ describe('Alert', () => {
8989 expect ( onClosed ) . toHaveBeenCalledTimes ( 1 ) ;
9090 } ) ;
9191
92- it ( 'calls onClose with "item- click" when clicking action' , async ( ) => {
92+ it ( 'calls onClose with "click-item " when clicking action' , async ( ) => {
9393 const onClose = vi . fn ( ) ;
9494 const onClosed = vi . fn ( ) ;
9595 const result = render (
@@ -110,7 +110,7 @@ describe('Alert', () => {
110110
111111 await userEvent . click ( result . getByTestId ( '__action__' ) ) ;
112112 expect ( onClose ) . toHaveBeenCalledTimes ( 1 ) ;
113- expect ( onClose ) . toHaveBeenCalledWith ( 'item- click' ) ;
113+ expect ( onClose ) . toHaveBeenCalledWith ( 'click-item ' ) ;
114114 await waitCSSKeyframesAnimation ( result . getByRole ( 'alertdialog' ) , {
115115 runOnlyPendingTimers : true ,
116116 } ) ;
@@ -179,7 +179,7 @@ describe('Alert', () => {
179179 expect ( onClosed ) . toHaveBeenCalledTimes ( 1 ) ;
180180 } ) ;
181181
182- it ( 'calls onClose with "item- click" when action with autoCloseDisabled calls close' , async ( ) => {
182+ it ( 'calls onClose with "click-item " when action with autoCloseDisabled calls close' , async ( ) => {
183183 const onClose = vi . fn ( ) ;
184184 const onClosed = vi . fn ( ) ;
185185 const action = vi . fn ( ( args ) => {
@@ -208,7 +208,7 @@ describe('Alert', () => {
208208 await userEvent . click ( result . getByTestId ( '__action__' ) ) ;
209209 expect ( action ) . toHaveBeenCalledTimes ( 1 ) ;
210210 expect ( onClose ) . toHaveBeenCalledTimes ( 1 ) ;
211- expect ( onClose ) . toHaveBeenCalledWith ( 'item- click' ) ;
211+ expect ( onClose ) . toHaveBeenCalledWith ( 'click-item ' ) ;
212212 await waitCSSKeyframesAnimation ( result . getByRole ( 'alertdialog' ) , {
213213 runOnlyPendingTimers : true ,
214214 } ) ;
0 commit comments