Skip to content

main red: payment-isolation.spec.ts:113 fails on all 3 browsers after #156 auth-redirect change #162

Description

@TortoiseWolfe

main is red: payment-isolation.spec.ts:113 fails on all 3 browsers

Test: tests/e2e/security/payment-isolation.spec.ts:113"Payment history shows only own payments" (REQ-SEC-001).

Symptom: on the current main E2E run (e6861e6) it fails on chromium + firefox + webkit (3 failed). The assertion that trips:

expect(hasNoPayments || hasPayments).toBe(true);  // line 157

i.e. after "Loading payment history" hides, the region shows neither the "No payment history" heading nor any [data-payment-item] — an empty/stuck render. Deterministic across browsers ⇒ a real regression, not flake.

Regression window: passed on PR #155's run (2026-07-03 morning). Broke after e6861e6 — #156 "make auth redirects basePath-aware" landed. That PR changed AuthContext.tsx redirect logic; payment-isolation runs a two-user login flow and reads each user's payment history — a redirect/session regression there is the most likely cause of the second context's history never loading.

Suspect: the #156 basePath-aware redirect change interacting with the E2E's multi-context auth (the test opens a second browser context for user B). Worth checking whether the post-login redirect now lands somewhere that leaves the PaymentHistory component unmounted/unhydrated.

Impact: a security/RLS isolation test is red on main — blocks clean merges (e.g. PR #160 PayPal, whose only red check is this same pre-existing failure).

Not caused by: PR #160 (PayPal — diff is PaymentButton only) or concurrent-run interference (runs were serialized by the e2e mutex, no overlap).

Metadata

Metadata

Assignees

No one assigned

    Labels

    gap-auditIdentified during 2026-04-25 planned-vs-shipped audit

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions