File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ describe('Steps', () => {
185185 const customRenderStep = ( step : StepsProps . Step ) => ( {
186186 header : < span data-testid = "custom-header" > Custom: { step . header } </ span > ,
187187 details : step . details ? < div data-testid = "custom-details" > Details: { step . details } </ div > : undefined ,
188+ icon : < span data-testid = "custom-icon" > icon</ span > ,
188189 } ) ;
189190
190191 test ( 'renders custom content when using renderStep' , ( ) => {
@@ -206,7 +207,7 @@ describe('Steps', () => {
206207 expect ( customDetails [ 0 ] . getElement ( ) ) . toHaveTextContent ( 'Step details' ) ;
207208 } ) ;
208209
209- test ( 'does not render status indicators when using renderStep' , ( ) => {
210+ test ( 'does not render status indicators when using renderStep with icon ' , ( ) => {
210211 const wrapper = renderSteps ( { steps : stepsForCustomRender , renderStep : customRenderStep } ) ;
211212
212213 expect ( wrapper . findItems ( ) [ 0 ] . findHeader ( ) ?. findStatusIndicator ( ) ) . toBeNull ( ) ;
You can’t perform that action at this time.
0 commit comments