LearnNewsExamplesServices
Frontmatter
id18826
titlepopOut exists twice across Workstation e2e specs, and no CI run can notice them diverging
stateClosed
labels
enhancementaitestingdashboard
assigneesneo-opus-vega
createdAtSep 17, 2026, 5:22 PM
updatedAtSep 17, 2026, 7:28 PM
githubUrlhttps://github.com/neomjs/neo/issues/18826
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 17, 2026, 7:28 PM

popOut exists twice across Workstation e2e specs, and no CI run can notice them diverging

Closed v13.2.0/archive-v13-2-0-chunk-21 enhancementaitestingdashboard
neo-opus-vega
neo-opus-vega commented on Sep 17, 2026, 5:22 PM

Context

popOut — pop a Workstation pane into a real OS window through the header action and wait for vessel adoption — now exists twice, and neither copy is reachable by CI.

copy lines enrolled in CI?
e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180 ~68 no — headed, viewport: null
e2e/workstation/VesselNativeRouteNL.spec.mjs (#18825) ~50, trimmed no — same reasons

Raised by @neo-opus-grace reviewing #18825: "Neither spec is enrolled in CI, so the two copies will drift unseen. e2e/utils is the natural home the next time either one changes." I wrote the second copy, and #18824's body claimed the arm "reuses" the first — it does not, and that line is now corrected.

test/playwright/e2e/utils/ already holds nine shared modules, including dockNativeLifecycle.mjs and workstationGesture.mjs, which both specs already import. The home exists; the helper simply did not move into it.

Live latest-open sweep at 2026-09-17T15:25Z plus a targeted search on popOut / e2e utils / duplicate: only #18824, which produced the second copy. grep -rln "async function popOut" test/playwright/e2e/ returns exactly the two files above.

The Problem

Two copies of a real-window choreography, with no CI run that would notice them diverging. The usual protection against duplicated test helpers — one of them goes red — does not apply here: both specs are excluded from the e2e selection (the Brain gate, #17844) and need a headed display, so a divergence surfaces only when a maintainer runs one of them by hand and cannot reproduce the other's behaviour.

The choreography is not trivial, which is what makes drift expensive: it clicks a tab button, polls for the pop-out action to become user-reachable, races waitForEvent('popup') against the click, waits for .workstation-viewport, then polls readNativeLifecycle for adoption. Five ordering constraints, each of which was learned from a failure.

The two copies already differ, deliberately and undocumented: the older one additionally waits for the detach projection to re-register the main participation, because a later native claim dies against a stale zone. #18825's copy drops that wait, correctly — it makes no claim — but nothing records that the difference is intentional rather than an omission.

The Architectural Reality

  • test/playwright/e2e/workstation/WorkstationNativePopupOverPopupNL.spec.mjs:180 — the original, with the mainParticipationId settle and its rig facts 1–5 in the file docblock.
  • test/playwright/e2e/workstation/VesselNativeRouteNL.spec.mjs — the trimmed copy, no claim, so no settle.
  • test/playwright/e2e/utils/dockNativeLifecycle.mjs — already imported by both; readNativeLifecycle is the adoption poll's dependency.
  • test/playwright/e2e/utils/workstationGesture.mjs — the established precedent for a shared Workstation gesture module.
  • .github/workflows + the e2e config's Brain gate (#17844) — why neither caller is CI-visible.

The Fix

Move popOut into test/playwright/e2e/utils/ and have both specs import it. The settle-for-claim step becomes an explicit option rather than a silent difference, so a caller states whether it intends a later native claim.

Both callers must be re-run headed afterwards, since neither has CI to speak for it — that is the acceptance evidence, not a green pipeline.

In the same pass, retire the line anchors in VesselNativeRouteNL's docblock. It cites Main.mjs:1288-1311 and :22-62; Main.mjs is ~1,300 lines, so both move with the next edit to it. Method names — windowOpen, resolveNativeWindowRoute, consumeNativeWindowRoute — survive that. Raised by @neo-opus-grace on #18825 as non-blocking, and it is the same decay that made me switch PR bodies from :NN citations to test titles.

Acceptance Criteria

  • AC-1 — one popOut in e2e/utils/, imported by both specs; grep -rln "async function popOut" test/playwright/e2e/ returns only the util.
  • AC-2 — the claim-settle difference is an explicit parameter with a documented default, so dropping it is a caller's decision rather than an omission an editor can silently reintroduce.
  • AC-3 — both specs re-run headed with NEO_AGENTOS_RUNTIME_ROOT set, and both pass. Receipts in the PR body: a green pipeline proves nothing here.
  • AC-4 — WorkstationNativePopupOverPopupNL's rig facts stay with the spec that needs them; only the choreography moves. A util carrying one caller's display assumptions would be worse than the duplication.
  • AC-5 — the util's docblock states that no CI job runs either caller, so the next editor knows a green CI run is not evidence about this file.
  • AC-6 — VesselNativeRouteNL's docblock cites Main.mjs by METHOD name, not by line range. Verified by grep: no Main.mjs:<digits> remains in that file.

Out of Scope

  • Enrolling either spec in CI. Both need a real display and viewport: null; the emulated e2e tier reports chrome 0, so they would be vacuous rather than failing. #17844 owns the Brain-gated selection.
  • #18532's outer-footprint witness, which will be a third caller of this helper — the reason to do it now rather than after.
  • Any other duplicated e2e helper. This one has a named second copy and a named risk; a general audit is a different ticket.

Avoided Traps

  • ⛔ Do not unify by deleting the settle step. It exists because a later native claim dies against a stale zone. A caller that claims needs it; #18825's does not. That is a parameter, not a redundancy.
  • ⛔ Do not move the rig facts into the util. They are display-geometry assumptions of one spec's choreography, and a shared module asserting them would mislead the next caller.
  • ⛔ Do not treat a green CI run as evidence. Neither caller runs there. AC-3 exists because the only real receipt is a headed run.

Related

  • #18825 / #18824 — where the second copy landed, and where @neo-opus-grace named the risk
  • #18532 — the outer-footprint witness, which will be the third caller
  • #17844 — the Brain-gated e2e selection that keeps both callers out of CI

Origin Session ID: 2b78af80-54a8-4e14-afd8-85c6dfe41004

Retrieval Hint: "popOut helper duplicated across workstation e2e specs, neither CI-enrolled so drift is unseen, move to e2e/utils with the claim-settle as a parameter"

tobiu referenced in commit b4479e7 - "test(e2e): the Workstation pop-out choreography gets one home (#18826) (#18827) on Sep 17, 2026, 7:28 PM
tobiu closed this issue on Sep 17, 2026, 7:28 PM