Skip to content

test(e2e): de-flake journey phases 1+2 under full-suite parallel load#78

Merged
bejranonda merged 1 commit into
mainfrom
claude/code-review-refactor-212i2
Jun 9, 2026
Merged

test(e2e): de-flake journey phases 1+2 under full-suite parallel load#78
bejranonda merged 1 commit into
mainfrom
claude/code-review-refactor-212i2

Conversation

@bejranonda

Copy link
Copy Markdown
Owner

Follow-up to #76. Running the journey spec inside the full parallel e2e suite surfaced a flake the standalone runs never hit: a Next.js <Link> RSC prefetch races navigation under load and logs Failed to fetch RSC payload … Falling back to browser navigation — the router falls back successfully, nothing user-visible breaks. Phase 4 already filtered this pattern; phases 1 and 2 did not.

Extracts a shared isBenignConsoleError() helper (auth/me probe noise + RSC prefetch fallback) and applies it in all three console-asserting phases.

Verification: full e2e suite (all 6 specs, 97 tests) run twice against production — 97/97 both times (~1.1 min per run). One earlier run also confirmed the deep-probes conditional 429 test passes when Cloudflare routing cooperates.

https://claude.ai/code/session_01BWLU1nKZpxToH5hMeBDusG


Generated by Claude Code

Running the journey spec inside the FULL parallel suite surfaced a
flake the standalone runs never hit: a Next.js <Link> RSC prefetch
races navigation under load and logs 'Failed to fetch RSC payload …
Falling back to browser navigation' — the router falls back fine,
nothing user-visible breaks. Phase 4 already filtered this; phases 1
and 2 did not.

Extract the shared isBenignConsoleError() helper (auth/me probe noise
+ RSC prefetch fallback) and apply it in all three console-asserting
phases. Verified: 97/97 across the whole e2e suite, twice.
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@bejranonda, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 11 minutes. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 110d30e6-0361-4990-8757-c82c44d6ffd4

📥 Commits

Reviewing files that changed from the base of the PR and between b5f791c and e99dde2.

📒 Files selected for processing (1)
  • frontend/tests/e2e/user-journey.spec.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/code-review-refactor-212i2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@bejranonda bejranonda merged commit ff2299a into main Jun 9, 2026
2 of 4 checks passed
bejranonda pushed a commit that referenced this pull request Jun 9, 2026
Round 12 added tests/e2e/user-journey.spec.ts (PRs #76-#78) — the fifth
testing lens: one spec walking production end-to-end through the
rendered UI. This commit records it everywhere the project documents
its testing posture, approach, and known issues:

- README / README-TH: e2e count 93 → 97 (6 spec files), four-lens →
  five-lens posture, Round 12 summary line, quality-gate table.
- CHANGELOG: full Round 12 entry — phase table, what building the spec
  itself surfaced (intermittent register error-boundary crash, silent
  sub-500-byte file rejection, duplicate-label button trap, benign
  console-noise classes), side-effect budget, test posture.
- RELEASE_NOTES: Round 12 section at top (unreleased).
- CONTRIBUTING: journey-spec section in Testing with run command,
  per-run cost, and the four extension rules.
- docs/GUIDELINE: "The full user-journey lens" — the approach (terminal-
  state assertions, runtime fixtures above client floors, type=submit
  over text selectors, documented-pattern console filtering) and method
  (phase independence, crash sentinels, side-effect budgets, when to
  run). Coverage table updated to 171 unit / 97 e2e.
- docs/ITERATION_PROCESS: §3 notes the spec automates manual checks
  1/3/4/5; §9 four-lens → five-lens table with the Round 12 row and
  the integration-seam lesson.
- docs/KNOWLEDGE_BASE: user-journey row in the Playwright table + a
  Round 12 section with the seven design decisions for extending it.
- docs/KNOWN_ISSUES: new §2a (intermittent client error boundary on
  register response — sentinel-pinned, medium priority) and §5
  (known-benign console-error noise, documented so new specs reuse
  the shared filter instead of rediscovering "flakes").
- docs/claude.md + docs/gemini.md: AI-guide sections pointing at the
  spec, its traps, and the GUIDELINE recipe.
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.

2 participants