test: add Playwright E2E tests for auth to dashboard flow#31
Merged
aji70 merged 4 commits intoJun 20, 2026
Conversation
- Add playwright.config.ts with CI and local settings - Add e2e/auth.spec.ts with 4 auth flow tests: - Guest redirected from /dashboard to /login - Valid login lands on dashboard - Invalid login shows error - Logout returns to login and blocks dashboard access - Add npm scripts: test:e2e, test:e2e:ui - Add GitHub Actions workflow for e2e tests - Update README with e2e testing instructions
Contributor
|
@annacodervibe fix ci |
Contributor
Author
ok am doing that now |
- Add 4 E2E scenarios: guest redirect, valid login, invalid login, logout - Add playwright.config.ts - Add GitHub Actions workflow - Add npm scripts for E2E tests
- Add tests for guest redirect from /dashboard to /login - Add tests for valid login flow - Add tests for invalid login with error message - Skip logout test (signup form not implemented) - All 3 tests passing
Contributor
Author
|
✅ Build passes
|
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.
Closes #27