Repository navigation
test(web): cl-1 waits for the offline banner, not the download view's line - #761
Merged
Merged
Conversation
… 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]>
|
Warning Review limit reachedYou'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. View limit details
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. |
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]>
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.
Problem
Master's Web e2e on 961104d (run 45885519043) failed one test,
cold-load-offline.spec.tscl-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