We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1967842 commit 9ef73b6Copy full SHA for 9ef73b6
test/wizard.test.tsx
@@ -37,6 +37,17 @@ describe('Wizard', () => {
37
expect(queryByText('step 2')).not.toBeInTheDocument();
38
});
39
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
51
test('should render header', () => {
52
const { queryByText } = render(ComponentWithHeader);
53
0 commit comments