feat: add Playwright E2E test suite for auth, dashboard, goals, streak, and API routes#2127
Merged
Priyanshu-byte-coder merged 1 commit intoJun 8, 2026
Conversation
…k, and API routes
|
@IshitaSingh0822 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
84e5fe5
into
Priyanshu-byte-coder:main
12 of 13 checks passed
|
🎉 Merged! Thanks for contributing to DevTrack. If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers. Keep an eye on open issues for your next contribution! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds a Playwright E2E test suite to DevTrack covering auth flow, dashboard widget rendering, goals CRUD, streak widget, and critical API routes.
Closes #2120
Type of Change
Changes Made
e2e/auth.spec.ts— landing page load, sign-in button visible, OAuth redirect fires, unauthenticated dashboard redirectse2e/dashboard.spec.ts— mock login viaencode()+addCookies(), all 6 widgets render, no uncaught console errorse2e/goals.spec.ts— create goal POST fires with correct payload, goal appears in list, delete removes ite2e/streak.spec.ts— current/longest streak values visible, freeze button present and triggers API calle2e/api.spec.ts—/api/metrics/contributionsreturns 200 with valid session, 401 without; goals POST returns 401 without sessionREADME.mdwith E2E test suite documentation, spec table, and local run instructionsHow to Test
npx playwright install --with-deps chromiumnpm run test:e2enpx playwright test e2e/goals.spec.tsnpx playwright show-reportNo real GitHub or Supabase credentials required — all external calls are mocked via
page.route().Screenshots (if UI change)
N/A
Checklist
npm run lintpasses locallynpm run type-check)Accessibility Checklist
Additional Notes
All 5 spec files have at least 3 assertions each. No real tokens needed in CI — mocked via
page.route(). Existing specs (landing.spec.js,auth-bypass.spec.js, etc.) are untouched.