Skip to content

fix(e2e): isolate markdown-viewer checks from a deleted fixture and WebKit's cancelled RSC fetches - #10373

Merged
waleedlatif1 merged 2 commits into
stagingfrom
fix/markdown-viewer-e2e-flakes
Nov 24, 2026
Merged

waleedlatif1 merged 2 commits into
stagingfrom
fix/markdown-viewer-e2e-flakes

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

The markdown-viewer e2e failed on 8 recent runs (6 PRs and 2 staging pushes) in three distinct ways. Two get fixed at the cause; the rarest one gets the diagnostics a fix needs.

  • "Cached navigation raised a caught browser error: … 404": the paste check deleted its fixture file while page still had it open. The editor refetched it after the delete, and the next check (proveWarmNavigation), which listens for console errors on the same page, recorded that 404 as its own. The server log for the failing run shows each such file going GET 200 → PUT → DELETE 200 → GET 404. The paste check now leaves the page (about:blank) before deleting
  • "No uncaught browser errors: webkit: …/tables?_rsc=… due to access control checks.": WebKit rejects a fetch the page cancels by navigating away (here a Next.js RSC prefetch) with that message, and the router leaves the rejection unhandled. For a same-origin _rsc request it is a cancellation, never an access failure. The WebKit pageerror collector ignores exactly that shape (same host, _rsc=, that suffix); every other page error still fails the run
  • "Keyboard selection did not select text" (WebKit, about 2 in 70 runs) isn't reproduced. Two earlier blind fixes (improvement(ci): install e2e browser system packages from a per-image cache #10258, fix(files): keep the reader's caret when the markdown editor settles #10263) made it worse and were reverted. The check now reports where the caret and focus ended up (anchor text and offsets, range count, active element), so the next failure names the cause

Type of Change

  • Bug fix (test)

Testing

  • biome, check:comment-hygiene; the markdown-viewer e2e on this PR

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 24, 2026 7:32pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 1 file

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues remain.

Summary

The PR keeps the paste fixture open on failure, tightens the WebKit error filter, and adds details to keyboard-selection failures.

  • The paste proof leaves the editor page before deleting its temporary file.
  • The browser check ignores WebKit errors for cancelled same-origin RSC fetches.
  • A failed keyboard-selection check now reports where the caret and focus ended up.

Reviews (2) · Last reviewed commit: "fix(e2e): match cancelled RSC fetches by..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit fb8f6e4 into staging Nov 24, 2026
48 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 032e4d86 Deployed Nov 24, 2026 by vercel[bot]
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