Skip to content

test(e2e): give each CSV preview its own link in csv-url-links - #39196

Merged
nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-csv-url-links
Nov 6, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/nightly-e2e-csv-url-links

Conversation

@nwparker

@nwparker nwparker commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The nightly test for clicking links inside CSV files has failed every night since late October. The app is fine; the test clicked the same web address twice and expected two browser tabs, but Orca now (on purpose) reuses the tab that already shows that address.

Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​26 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​22
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​10

What Changed

  • tests/e2e/csv-url-links.spec.ts: the small CSV and the large (paged) CSV now each contain their own URL. Each click must still open exactly one new in-app browser tab showing that URL, without navigating the Orca window away.
  • Added a PR routing rule so changes under src/renderer/src/components/editor/csv/ run the three CSV e2e specs (csv-paged-preview, csv-table-editing, csv-url-links). Before, a CSV viewer change selected none of them. Covered by a new case in pr-e2e-gate-contract.test.mjs.

Before: the spec opened the small CSV's link (tab count 0 to 1), then clicked the same URL in the paged CSV and waited for a second tab that never came. After: the second click uses a different URL, so it has to open its own tab.

Why

#32907 ("Open browser links beside their source") made links reuse a page that already shows the same address in the same workspace, host and profile. That is the behavior we want, so the test changes, not the product. The assertions stay as strict as before: one new tab per click, the tab's URL, and an unchanged renderer URL. The other option was to assert reuse on the second click, but then the test would no longer check that a link in the paged preview opens a tab at all, which is what it was written to cover.

Overlaps with #38365, which makes the same change to this spec. This PR also adds the routing rule.

Linked Issue

N/A (nightly E2E failure, maintainer)

Visual Proof

N/A. This changes only a test and CI routing; the app behaves the same.

Testing

  • ORCA_BACKGROUND_LAUNCH=1 pnpm run test:e2e tests/e2e/csv-url-links.spec.ts tests/e2e/csv-paged-preview.spec.ts tests/e2e/csv-table-editing.spec.ts --repeat-each=2: 16/16 passed on macOS. Without the change, csv-url-links fails the same way it does in CI (expected 2 tabs, got 1).

  • pnpm test config/scripts/workflow/source-routing/, pnpm tc, pnpm run check:code-quality:changed all pass.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Every added test fails without this change and avoids the test anti-patterns

Risk

Low. Only a test and CI routing change. PRs that touch CSV viewer code now run three more e2e specs, about 3 minutes in total. Undo with a plain revert.

Level: Low

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I stated the risk
  • N/A with reason for visuals
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (N/A: test only)
  • Typecheck and tests pass locally

@coderabbitai

coderabbitai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

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 36 seconds.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews 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: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b0ec18f-325b-4357-839c-41d8f243f0b4
Commits

Reviewing files that changed from the base of the PR and between fe112ed and 746640b.

Files selected for processing: 3

  • config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs
  • config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.test.mjs
  • tests/e2e/csv-url-links.spec.ts

No actionable comments were generated in the recent review.

Walkthrough

The changes add a source route for three CSV end-to-end specs and a contract test for route selection. The URL-links end-to-end test now uses separate URLs to generate content for the small and large CSV previews.

Merge Risk: Minimal · previous review fe112

The change updates CSV test URLs and routing; no actionable merge risk was identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly describes the CSV link test change. It does not mention the related E2E routing change.
Description check Passed The description covers the changes, rationale, testing, visual impact, and risk. It does not state whether lint and build passed or CI will cover them.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fa77a2ce-b8a5-4c4d-aa0e-29ea32873a81
Commits

Reviewing files that changed from the base of the PR and between dbf5634 and fe112ed.

Files selected for processing: 3

  • config/scripts/workflow/source-routing/pr-e2e-gate-contract.test.mjs
  • config/scripts/workflow/source-routing/pr-editor-preview-e2e-source-routes.mjs
  • tests/e2e/csv-url-links.spec.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

@nwparker
nwparker force-pushed the nwparker/nightly-e2e-csv-url-links branch from 9b8dca4 to 0179209 Compare November 6, 2026 23:00
@nwparker
nwparker enabled auto-merge (squash) November 6, 2026 23:00
@nwparker
nwparker force-pushed the nwparker/nightly-e2e-csv-url-links branch from 0179209 to fe112ed Compare November 6, 2026 23:07
… tab

A link whose page is already open now reuses that tab (#32907), so the paged
preview's click of the same URL never added the second tab the spec counted.
Also route CSV viewer sources to the CSV specs.
@nwparker
nwparker force-pushed the nwparker/nightly-e2e-csv-url-links branch from fe112ed to 746640b Compare November 6, 2026 23:17
@nwparker
nwparker merged commit 95a4d9b into main Nov 6, 2026
48 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