Skip to content

Commit 1b764f0

Browse files
committed
update test
1 parent b3c1d9f commit 1b764f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/steps/__tests__/steps.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)