Skip to content

test(e2e): build out robust Playwright suite across the app#47

Merged
sethdavis512 merged 1 commit into
mainfrom
test/e2e-playwright-suite
May 30, 2026
Merged

test(e2e): build out robust Playwright suite across the app#47
sethdavis512 merged 1 commit into
mainfrom
test/e2e-playwright-suite

Conversation

@sethdavis512

Copy link
Copy Markdown
Contributor

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.

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>
@sethdavis512 sethdavis512 merged commit 8e3d655 into main May 30, 2026
2 of 3 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.

1 participant