Skip to content

test(e2e): stabilize OIDC login spec against staging (GOV-592)#12

Merged
Shaivpidadi merged 1 commit intodevfrom
feat/nova-gov-592-staging-warmup
Apr 23, 2026
Merged

test(e2e): stabilize OIDC login spec against staging (GOV-592)#12
Shaivpidadi merged 1 commit intodevfrom
feat/nova-gov-592-staging-warmup

Conversation

@Shaivpidadi
Copy link
Copy Markdown
Member

Summary

  • The OIDC login E2E (tests/e2e/auth.spec.ts) exists from PR test(e2e): QA.4 — governed chat flow (login, PII, deny, audit log) #9 but has been failing in the scheduled E2E Tests job against staging because the warmup step only pinged precheck — leaving the chat app and Keycloak (both Render free-tier) cold when Playwright opened the first page.
  • Warmup now covers all three Render-hosted dependencies (precheck, keycloak, chat) before tests run.
  • Navigation timeout 30s → 60s and per-test timeout 60s → 120s to absorb residual first-request latency when a service just woke up. trace: 'retain-on-failure' stays in place, so artifacts are still uploaded on failure.

Closes the remaining acceptance item on GOV-592 ("TEST: Passes against staging; trace saved on failure").

Test plan

  • workflow_dispatch on E2E Tests for this branch runs green end-to-end against staging
  • Failure artifacts (trace, screenshot, video) still uploaded when any test fails (unchanged config, no regression expected)
  • Local pnpm test:e2e against the local dev stack continues to pass

The OIDC login spec already exists in auth.spec.ts but was failing in CI
because the warmup step only pinged precheck, while the chat app and
Keycloak (both Render free-tier) were still cold when Playwright opened
the first page — tripping the 30s navigationTimeout.

- Warmup all three services (precheck, keycloak, chat) before running
- Bump navigationTimeout 30s -> 60s and test timeout 60s -> 120s to
  absorb residual cold-start latency on the first navigation
- Trace/screenshot/video retention on failure was already configured

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chat-agent-example Ready Ready Preview, Comment Apr 23, 2026 8:08pm

@Shaivpidadi Shaivpidadi merged commit 7bd073b into dev Apr 23, 2026
4 checks passed
@Shaivpidadi Shaivpidadi deleted the feat/nova-gov-592-staging-warmup branch April 23, 2026 20:24
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