test(e2e): build out robust Playwright suite across the app#47
Merged
Conversation
Expand the E2E suite from auth/chat smoke tests to broad coverage: navigation/layout, dashboard, healthcheck, the /api/chat API boundary (401/400/403/404/405), agent tool rendering (note + card via mocked dynamic-tool SSE), chat error/retry/dismiss UX, and cross-user thread access control. Make auth state explicit and isolated: replace the shared-storageState setup project with a per-test fresh-user `authedPage` fixture so parallel runs never share thread state, and add `createAuthedContext` / `createThreadViaApi` helpers plus `tests/chat-mock.ts`. Run the suite on a dedicated port (E2E_PORT, default 7778) to avoid colliding with other local dev servers, and point both BETTER_AUTH base URLs at it so Better Auth trusts the origin. Add a test-only DISABLE_AUTH_RATE_LIMIT env toggle (off everywhere else) so rapid per-test sign-ups don't trip Better Auth's limiter. Fix stale /profile -> /dashboard assertions. 162 tests green across chromium, firefox, and webkit. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Expand the E2E suite from auth/chat smoke tests to broad coverage: navigation/layout, dashboard, healthcheck, the /api/chat API boundary (401/400/403/404/405), agent tool rendering (note + card via mocked dynamic-tool SSE), chat error/retry/dismiss UX, and cross-user thread access control.
Make auth state explicit and isolated: replace the shared-storageState setup project with a per-test fresh-user
authedPagefixture so parallel runs never share thread state, and addcreateAuthedContext/createThreadViaApihelpers plustests/chat-mock.ts.Run the suite on a dedicated port (E2E_PORT, default 7778) to avoid colliding with other local dev servers, and point both BETTER_AUTH base URLs at it so Better Auth trusts the origin. Add a test-only DISABLE_AUTH_RATE_LIMIT env toggle (off everywhere else) so rapid per-test sign-ups don't trip Better Auth's limiter. Fix stale /profile -> /dashboard assertions.
162 tests green across chromium, firefox, and webkit.