Skip to content

Commit 2db244f

Browse files
committed
test: add wizard wrapper test case
1 parent 5ecdc23 commit 2db244f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test/wizard.test.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ const ComponentWithFooter = (
2424
</Wizard>
2525
);
2626

27+
const ComponentWithWrapper = (
28+
<Wizard wrapper={<main />}>
29+
<p>step 1</p>
30+
<p>step 2</p>
31+
</Wizard>
32+
);
33+
2734
describe('Wizard', () => {
2835
test('should render first step', () => {
2936
const { queryByText } = render(Component);
@@ -60,4 +67,10 @@ describe('Wizard', () => {
6067

6168
expect(queryByText('footer')).toBeInTheDocument();
6269
});
70+
71+
test('should render wrapper', () => {
72+
const { queryByRole } = render(ComponentWithWrapper);
73+
74+
expect(queryByRole('main')).toBeInTheDocument();
75+
});
6376
});

0 commit comments

Comments
 (0)