test(e2e): QA.4 — governed chat flow (login, PII, deny, audit log)#9
Merged
Shaivpidadi merged 3 commits intodevfrom Apr 23, 2026
Merged
test(e2e): QA.4 — governed chat flow (login, PII, deny, audit log)#9Shaivpidadi merged 3 commits intodevfrom
Shaivpidadi merged 3 commits intodevfrom
Conversation
Pins the demo app to the new SDK release candidate. pnpm install and pnpm build confirmed clean (build output unchanged). pnpm install will fully resolve once alpha.14 is published via: cd typescript-sdk && npm adduser && npm publish --tag alpha
This reverts commit 00c5faa.
Adds governed-chat.spec.ts covering all four flows required by TASKS.md §QA.4: 1. QA.4-1 OIDC login via Keycloak → chat UI loads (redirect, login, logout) 2. QA.4-2 PII prompt → Redact badge in chat + matching entry in decisions log 3. QA.4-3 Malicious / bash.exec-style prompt → Block badge + red UI bubble 4. QA.4-4 Audit log — decisions page shows at least one row with correct org scope Updates playwright.config.ts to honour BASE_URL env var (task requirement). Updates fixtures.ts defaults to staging deployed URLs: - Platform: https://platform-platform-pi.vercel.app - Keycloak: https://governs-keycloak.onrender.com Credentials are read from KEYCLOAK_USER / KEYCLOAK_PASSWORD env vars. All 20 tests (6 files) verified discovered via `npx playwright test --list`.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Apr 23, 2026
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
tests/e2e/governed-chat.spec.ts— 9 Playwright tests covering all four flows required by TASKS.md §QA.4 / T-4:Redactdecision badge in chat UI + matchingredact/transformrow in platform decision logBlockbadge, red message bubble,Request blockedcopy, UI stays interactiveplaywright.config.tsto honourBASE_URLenv var (required by task spec)fixtures.tsdefaults to the known staging deployed URLs:https://platform-platform-pi.vercel.apphttps://governs-keycloak.onrender.comKEYCLOAK_USER/KEYCLOAK_PASSWORDenv vars — no hardcoded credentialsCredentials needed to run
The tests that exercise the real Keycloak login flow require:
A demo user seeded in the
governs-aiKeycloak realm with access to the configuredE2E_ORG_SLUGorg is needed. Until CI secrets are wired, tests can be run locally against the staging stack.Test plan
npx playwright test --list— 20 tests across 6 files all discoveredKEYCLOAK_USER/KEYCLOAK_PASSWORDare available as CI secretsplaywright.config.ts)