Skip to content

Commit

Permalink
Merge pull request #1 from Eslam3bed/new-dummy-tests
Browse files Browse the repository at this point in the history
adding commented tests
  • Loading branch information
Eslam3bed authored Sep 22, 2024
2 parents 895e9dc + 6e9ff8b commit 74c7655
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/__test__/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
// <OnboardingProvider steps={steps}>
// <OnboardingTooltip />
// </OnboardingProvider>
// );

// // 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(
// <OnboardingProvider steps={steps}>
// <OnboardingTooltip />
// </OnboardingProvider>
// );

// 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);
Expand Down

0 comments on commit 74c7655

Please sign in to comment.