Skip to content

test(web): bring the e2e specs up to date with the product; deflake browse-cache - #568

Merged
PastaPastaPasta merged 1 commit into
masterfrom
rel2/fix-e2e-spec-rot
Oct 17, 2026
Merged

PastaPastaPasta merged 1 commit into
masterfrom
rel2/fix-e2e-spec-rot

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Test-only. Two runs exercised the Playwright specs against the release candidate: the rel2 devnet QA wave (rc.3
baseline, sakura) and the testnet rehearsal. In both, these specs failed because the specs had drifted from the
product, not because the product was wrong. Each failure has a corrected control that passed live.

Mapping: R2-E2E-01..09, 12, 14..18 and 20..23 in the devnet register, plus the rehearsal's web items. Their evidence
is dash-forge-qa/evidence/devnet-rel2/e2e/findings.json and evidence/testnet-rehearsal/web/.

What changed

  • Copy and labels that moved:
    • follower and following URLs by ?id= (collab-copy);
    • the footer links (session-persistence);
    • the storage wizard's "your own network" wording, its no-op default save, and the inline unlock after reload;
    • the inbox note (v2-inbox-topup);
    • the Write role (v2-writes, v2-private);
    • the duplicate-key "Unlock it instead" (signin-words-recovery);
    • long comments stored as artifacts (write-refusals r5);
    • the Renew button (key-renewal-recovery);
    • the retention warning's case.
  • Ambiguous or unmounted locators:
    • the exact Base field and the first git push snippet (v2-pulls);
    • Add (v2-writes, v2-private);
    • the Identity file tab before #enc-file;
    • Apply in Choose assignees (v2-issues);
    • the members-only audience chip, now a button (v2-members-only).
  • Stale or too-broad assertions:
    • the star check is scoped to main, so the new-key notice no longer trips it;
    • the private signed-out view;
    • the wallet tile order on devnet and testnet, and the testnet QR URI (wallet-login; adapted from the rehearsal's
      testnet patch);
    • create-identity-recovery holds the quorum-key injection through the broadcast, since beta.6+ fetches missing
      quorum keys itself, and asserts the injection took effect;
    • history-index hi-2/hi-3 allow one read-ahead block per path segment, because Blame and History check the index
      against the tip's tree (path-history.ts, blame.ts). It runs on any network that sets E2E_HISTORY_REPO, and still
      skips elsewhere except moutai;
    • discovery-urls g2 handles an Explore with fewer than 24 repos;
    • the mirror wizard works on any network.
  • lib/view/browse-cache.test.ts: it waited a fixed number of ticks for a revalidation that reads one more chunk
    through a MessageChannel hop, and lost the race under load. It failed 2 of about 4 loaded full-suite runs. It now
    waits until the cache holds the new context: 80+ runs under load, 0 failures, and it fails every time with a 5 ms
    chunk delay on the old code.

Not changed

  • page-budget pb-1/pb-5 and code-search-budget cs-1: these exceed their ceilings on testnet because no testnet contract
    snapshot is bundled yet (P4 adds it).
  • e2e/cli: the rehearsal lead takes those.
  • WebKit page-error counting: it needs a live WebKit testnet run first.

Verification

  • In forge-web: pnpm typecheck and pnpm lint:copy are clean; pnpm lint has no errors (its one warning, in
    merge-panel.tsx, is pre-existing). playwright test --list still collects all 431 tests in 69 files.
  • The required read-only sakura check on this PR exercises the read-path changes.
  • The write specs (E2E_WRITE=1) have not been run live with these edits. A live run on devnet follows the merge.

🤖 Generated with Claude Code

…rowse-cache

The rel2 devnet QA wave and the testnet rehearsal ran the Playwright specs
against the release candidate; these failures were the specs, not the app
(each had a corrected control that passed):
- copy and labels that moved: follower URLs by id, footer links, storage
  wizard wording and the no-op save, inbox note, Write role, duplicate-key
  Unlock, long comments stored as artifacts, renew button, retention warning;
- ambiguous or unmounted locators: Base field, git push snippet, Add, the
  Identity file tab, assignee Apply, the members-only audience chip;
- assertions too broad or stale: the star check scoped to main, the
  private signed-out view, the wallet tile order (devnet and testnet), the
  quorum-key injection now held through the broadcast, history-index's
  index check allowed one block per path segment (and runnable on any
  network that names E2E_HISTORY_REPO), Explore paging with under 24 repos,
  mirror wizard on any network.

browse-cache.test.ts waited a fixed number of ticks for a revalidation that
reads one more chunk through a MessageChannel hop; under load it lost the
race. It now waits until the cache holds the new context.

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

coderabbitai Bot commented Oct 17, 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 17 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
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 038b0937-7957-49a6-a284-eea804d5dcca
📥 Commits

Reviewing files that changed from the base of the PR and between e6ec7d1 and 9824cf9.

📒 Files selected for processing: 20
  • forge-web/e2e/collab-copy.spec.ts
  • forge-web/e2e/create-identity-recovery.spec.ts
  • forge-web/e2e/discovery-urls.spec.ts
  • forge-web/e2e/history-index.spec.ts
  • forge-web/e2e/key-renewal-recovery.spec.ts
  • forge-web/e2e/mirror-wizard.spec.ts
  • forge-web/e2e/session-persistence.spec.ts
  • forge-web/e2e/signin-words-recovery.spec.ts
  • forge-web/e2e/storage-wizard.spec.ts
  • forge-web/e2e/v2-inbox-topup.spec.ts
  • forge-web/e2e/v2-issues.spec.ts
  • forge-web/e2e/v2-members-only.spec.ts
  • forge-web/e2e/v2-private-members.spec.ts
  • forge-web/e2e/v2-private.spec.ts
  • forge-web/e2e/v2-pulls.spec.ts
  • forge-web/e2e/v2-writes.spec.ts
  • forge-web/e2e/wallet-login.spec.ts
  • forge-web/e2e/wallet-responder.mjs
  • forge-web/e2e/write-refusals.spec.ts
  • forge-web/lib/view/browse-cache.test.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

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

@PastaPastaPasta
PastaPastaPasta merged commit 217ab66 into master Oct 17, 2026
19 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