Skip to content

Commit 9ef73b6

Browse files
committed
test: add start index in wizard
1 parent 1967842 commit 9ef73b6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/wizard.test.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ describe('Wizard', () => {
3737
expect(queryByText('step 2')).not.toBeInTheDocument();
3838
});
3939

40+
test('should render second step with passed `startIndex`', () => {
41+
const { queryByText } = render(
42+
<Wizard startIndex={1}>
43+
<p>step 1</p>
44+
<p>step 2</p>
45+
</Wizard>,
46+
);
47+
48+
expect(queryByText('step 2')).toBeInTheDocument();
49+
});
50+
4051
test('should render header', () => {
4152
const { queryByText } = render(ComponentWithHeader);
4253

0 commit comments

Comments
 (0)