Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Eslam3bed/react-onboardx
Browse files Browse the repository at this point in the history
  • Loading branch information
Eslam3bed committed Sep 22, 2024
2 parents d945bf7 + 9050471 commit 67bfbc8
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ jobs:
git config --global user.name 'Eslam3bed'
git config --global user.email '[email protected]'
npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -57,7 +56,6 @@ jobs:
echo "::set-output name=version_bumped::true"
fi
- name: Push changes to main branch
if: steps.commit_version.outputs.version_bumped == 'true'
run: git push --follow-tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,7 +69,6 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
if: needs.build.outputs.version_bumped == 'true'
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### 0.0.6 (2024-09-22)

### 0.0.4 (2024-09-22)

### 0.0.2 (2024-09-22)
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-onboardx",
"version": "0.0.5",
"version": "0.0.6",
"description": "React Onboarding Tool Kit is a flexible, easy-to-use package for creating guided tours and onboarding experiences in React applications. It provides a headless approach, allowing you to maintain full control over your UI while leveraging powerful onboarding logic.",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
Expand Down Expand Up @@ -32,4 +32,4 @@
"tslib": "^2.7.0",
"typescript": "^5.6.2"
}
}
}
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 67bfbc8

Please sign in to comment.