Repository navigation
test(e2e): give each CSV preview its own link in csv-url-links - #39196
Conversation
|
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 36 seconds. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
9b8dca4 to
0179209
Compare
0179209 to
fe112ed
Compare
… 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.
fe112ed to
746640b
Compare
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.
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.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 inpr-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-linksfails 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:changedall 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
Checklist
N/Awith reason for visuals