@@ -210,9 +210,9 @@ describe('Steps', () => {
210210 ] }
211211 /> ,
212212 ) ;
213- const items = container . querySelectorAll ( '.rc-steps-item-wrapper ' ) ;
213+ const items = container . querySelectorAll ( '.rc-steps-item' ) ;
214214 fireEvent . click ( items [ 1 ] ) ;
215- expect ( onChange ) . toBeCalledWith ( 1 ) ;
215+ expect ( onChange ) . toHaveBeenCalledTimes ( 1 ) ;
216216 } ) ;
217217
218218 it ( 'items out of render function' , ( ) => {
@@ -233,7 +233,7 @@ describe('Steps', () => {
233233 < Steps current = { current } onChange = { onChange } items = { items } key = { current } /> ,
234234 ) ;
235235
236- const step = container . querySelectorAll ( '.rc-steps-item-wrapper ' ) [ 1 ] ;
236+ const step = container . querySelectorAll ( '.rc-steps-item' ) [ 1 ] ;
237237 fireEvent . click ( step ) ;
238238 rerender ( < Steps current = { current } onChange = { onChange } items = { items } key = { current } /> ) ;
239239 expect ( container . querySelectorAll ( '.rc-steps-item' ) [ 1 ] . classList ) . toContain (
@@ -265,7 +265,7 @@ describe('Steps', () => {
265265 /> ,
266266 ) ;
267267
268- const btn = container . querySelectorAll ( '.rc-steps-item-wrapper ' ) [ 0 ] ;
268+ const btn = container . querySelectorAll ( '.rc-steps-item' ) [ 0 ] ;
269269 fireEvent . click ( btn ) ;
270270 expect ( onClick ) . toHaveBeenCalled ( ) ;
271271 } ) ;
@@ -276,7 +276,7 @@ describe('Steps', () => {
276276 < Steps onChange = { onChange } items = { [ { } , { } , { disabled : true } ] } /> ,
277277 ) ;
278278
279- const items = container . querySelectorAll ( '.rc-steps-item-wrapper ' ) ;
279+ const items = container . querySelectorAll ( '.rc-steps-item' ) ;
280280 fireEvent . click ( items [ 2 ] ) ;
281281 expect ( onChange ) . not . toBeCalled ( ) ;
282282 } ) ;
0 commit comments