-
Notifications
You must be signed in to change notification settings - Fork 0
E2E: Comprehensive Sign-In Flow Tests #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
96871d3
feat: add comprehensive E2E tests for sign-in flow
TheEagleByte c3ca90a
refactor: use dynamic user creation for signin E2E tests
TheEagleByte 25d0322
feat: add secure test user cleanup script
TheEagleByte beae6b4
feat: automate test user cleanup in CI/CD
TheEagleByte a01691c
refactor: simplify cleanup to daily cron schedule
TheEagleByte bd617bc
fix: address CodeRabbit feedback and improve test reliability
TheEagleByte 4be86e6
fix: resolve TypeScript errors and flaky E2E test
TheEagleByte 531b934
test: remove flaky disabled fields E2E test
TheEagleByte d0a41ba
fix: add ESLint disable comments for intentional any usage
TheEagleByte 9585a07
ci: add separate code quality job to E2E workflow
TheEagleByte d844523
ci: create separate code quality workflow
TheEagleByte File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: Cleanup Test Users | ||
|
|
||
| on: | ||
| schedule: | ||
| # Run daily at 3 AM UTC | ||
| - cron: '0 3 * * *' | ||
| workflow_dispatch: # Allow manual triggering | ||
|
|
||
| jobs: | ||
| cleanup: | ||
| name: Remove Old Test Users | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20.x' | ||
| cache: 'npm' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Cleanup test users older than 1 day | ||
| run: npm run cleanup:test-users -- --execute --yes --days=1 --limit=500 | ||
| env: | ||
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | ||
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} | ||
| SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | ||
|
|
||
| - name: Notify on failure | ||
| if: failure() | ||
| run: | | ||
| echo "::warning::Test user cleanup failed. Check logs for details." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Code Quality | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main, develop] | ||
| workflow_dispatch: # Allow manual triggering | ||
|
|
||
| jobs: | ||
| code-quality: | ||
| name: Code Quality Checks | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '20.x' | ||
| cache: 'npm' | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run linting | ||
| run: npm run lint | ||
|
|
||
| - name: Run type checking | ||
| run: npx tsc --noEmit | ||
|
|
||
| - name: Build check | ||
| run: npm run build | ||
| env: | ||
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | ||
| NEXT_PUBLIC_SUPABASE_ANON_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid relying on secrets for PR builds.
On
pull_requestruns from forks, repository secrets resolve to empty strings, so this build step will fail and block external contributors. Please gate the build behind a same-repo check, switch to non-secret action variables, or provide a public fallback.envto keep the step green for forks.🤖 Prompt for AI Agents