Skip to content

test(web): cl-1 waits for the offline banner, not the download view's line - #761

Merged
PastaPastaPasta merged 2 commits into
masterfrom
test/cl1-banner
Nov 26, 2026
Merged

PastaPastaPasta merged 2 commits into
masterfrom
test/cl1-banner

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Problem

Master's Web e2e on 961104d (run 45885519043) failed one test, cold-load-offline.spec.ts cl-1, twice. It timed out waiting for the download view's "You're offline" line. The failed traces show why. The test's route takes the whole browser context offline when the wasm is requested, so the SDK's JS chunk, requested 1 ms later, fails too. The connect then fails at once and the download view never paints its line. The final state was correct: "You're offline", no countdown, one Try again. This is a race in the harness, not a product change. The strict note-then-banner order was only added earlier the same day.

Fix

cl-1 asserts the deterministic end state: the banner says "You're offline", blames nothing and shows no countdown, then the page connects once the network is back. The download view's offline line keeps its unit test in failure-states.test.tsx, but no e2e checks it now; cl-2 covers only the stall line. A follow-up case could cut the network mid-download, after the SDK chunk has loaded, to restore that.

Evidence

A boat sandbox with a testnet build of master plus this change: cold-load-offline.spec.ts --repeat-each 3, 6/6 passed. The same flow passed live on both sites at 961104d (the banner showed "You're offline", with no blame and no countdown, and the page connected about 0.5 s after the network came back).

Test-only change: no compatibility or data risk.

An independent review approved this with suggestions: it corrected the cause above and the coverage note.

🤖 Generated with Claude Code

… line

On v5.1 the verifier download can fail to the banner before its view's
offline line paints (master run 45885519043 failed cl-1 on that line).
The banner is the deterministic end state; the view's line is covered
by its unit tests and cl-2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 54 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 59b29b88-99a2-4c54-ae32-66ce9956dfc7
Commits

Reviewing files that changed from the base of the PR and between 4b0d8f7 and 91e1b70.

Files selected for processing: 1

  • forge-web/e2e/cold-load-offline.spec.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

The route takes the whole context offline, so the SDK's JS chunk fails
too and the connect fails at once: a harness race, not a v5.1 change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@PastaPastaPasta
PastaPastaPasta merged commit 0ff673b into master Nov 26, 2026
21 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