Skip to content

Feat/add e2e tests#83

Merged
binit2-1 merged 2 commits intomainfrom
feat/add-e2e-tests
Jan 28, 2026
Merged

Feat/add e2e tests#83
binit2-1 merged 2 commits intomainfrom
feat/add-e2e-tests

Conversation

@binit2-1
Copy link
Owner

@binit2-1 binit2-1 commented Jan 28, 2026

🧪 Test Contribution

📝 Description

This PR fixes the auth endpoint E2E tests that were failing due to multiple issues:

  1. Tests running in parallel - Auth tests depend on each other (login needs registration first), but were running in parallel with different user credentials
  2. Missing name field - Better Auth requires a name field for email sign-up
  3. Missing API_URL environment variable - Tests couldn't find the API server
  4. Playwright not starting API server - Only the frontend was being started before tests
  5. CI not having a database - Added PostgreSQL service container for GitHub Actions

🎯 Test Type

  • 🟢 E2E (Root) - npm run test:e2e
  • 🟡 Unit (API) - npm run test:unit (in apps/api)
  • 🔵 Unit (Web) - npm run test:unit (in apps/web)

✅ Checklist

  • I have verified that the new test passed locally.
  • I have ensured that I didn't break existing tests.
  • (If E2E) I used the isolated test database mechanism.
  • I have cleansed any hardcoded secrets/IDs.

📸 Screenshots / Trace (Optional)

If this is a UI test or complex flow, attach a screenshot or referencing the trace file.

Fixes: #77

@vercel
Copy link

vercel bot commented Jan 28, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
composter-api Ready Ready Preview, Comment Jan 28, 2026 6:18pm
composter-web Ready Ready Preview, Comment Jan 28, 2026 6:18pm

@binit2-1 binit2-1 merged commit e69bff7 into main Jan 28, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Test] API Health & Auth Tests

1 participant