diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 5bae62e..770f3f9 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -37,7 +37,6 @@ jobs: git config --global user.name 'Eslam3bed' git config --global user.email 'e.eslam3bed@gmail.com' npm run release - env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -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 }} @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c67fd1..1c536ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/package.json b/package.json index 483b253..ab37517 100644 --- a/package.json +++ b/package.json @@ -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", @@ -32,4 +32,4 @@ "tslib": "^2.7.0", "typescript": "^5.6.2" } -} \ No newline at end of file +} 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);