From 6e9ff8b44e39f7591058676653d2571b47ac7d30 Mon Sep 17 00:00:00 2001 From: eslam3bed <20760072+Eslam3bed@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:55:09 +0300 Subject: [PATCH] adding commented tests --- src/__test__/index.test.tsx | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/__test__/index.test.tsx b/src/__test__/index.test.tsx index 1cbc1de..d74c730 100644 --- a/src/__test__/index.test.tsx +++ b/src/__test__/index.test.tsx @@ -7,6 +7,35 @@ describe('Onboarding', () => { { id: 'step1', content: 'Step 1' }, { id: 'step2', content: 'Step 2' }, ]; + + // it('renders the tooltip with the correct step', () => { + // render( + // + // + // + // ); + + // // Activate the onboarding + // const nextButton = screen.getByText('Next'); + // expect(screen.getByText('Step 1')).toBeInTheDocument(); + + // fireEvent.click(nextButton); + // expect(screen.getByText('Step 2')).toBeInTheDocument(); + // }); + + // it('disables the next button on the last step', () => { + // render( + // + // + // + // ); + + // const nextButton = screen.getByText('Next'); + // fireEvent.click(nextButton); + + // expect(nextButton).toBeDisabled(); + // }); + it('checks if onboarding should start', () => { const user = { hasCompletedOnboarding: false }; expect(shouldStartOnboarding(user)).toBe(true);