Skip to content

clear pane maximize state in e2e resets; isolate per-spec data homes - #17953

Merged
kevinushey merged 1 commit into
mainfrom
test/e2e-pane-maximize-state-leak
Jun 12, 2026
Merged

kevinushey merged 1 commit into
mainfrom
test/e2e-pane-maximize-state-leak

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Fixes #17952.

Two fixes for the environment-pane e2e failures where #rstudio_workbench_tab_environment resolved as selected but stayed "not visible" for the rest of a CI run:

layout.reset() now clears WindowFrame-level pane maximize

PaneManager.endZoomIfActive (backing window.rstudio.layout.reset(), which the per-test reset calls) only checked PaneManager's zoom tracking. A quadrant maximized through the WindowFrame state machine -- the pane-header min/max buttons, or EnsureHeightEvent escalating to MAXIMIZE when the requested height doesn't fit (the R Notebook preview on ~645px-tall CI displays) -- was invisible to it, leaving TabSet1 minimized with its real tab elements hidden. When no tracked zoom is active, the reset now restores any MAXIMIZE-state quadrant to NORMAL, which also restores its minimized sibling; HIDE/EXCLUSIVE pairs (the empty-source-pane layout) are left alone.

Per-spec RSTUDIO_DATA_HOME in the desktop e2e fixture

All workers shared one data home, so the maximize persisted via client state (data-home/pcs/windowlayoutstate.pper) and every subsequent launch -- including fresh retry workers -- restored the broken layout at startup. Each launch now gets its own data home under its per-spec config root (still reused across deliberate quit-and-restart flows, so persistence tests keep working), and the seeded Posit Assistant build is symlinked into each per-spec data home. The uninstall flow deletes pai via boost::filesystem::remove_all, which removes the link without following it, so the shared seed survives.

Tests

  • New regression test in tabs.test.ts: maximizes TabSet2 via maximizeTabSet2 (the same WindowState path the notebook preview takes), confirms the Environment tab is hidden, and verifies layout.reset() restores it. Passes against the dev build.
  • environment_pane.test.ts passes locally when run after main's rnotebook.test.ts in the same worker (the CI failure sequence).
  • sandbox.test.ts updated for (and verifying) the per-spec data home, including that the session writes rstudio-desktop.json there.
  • pane_location_persistence.test.ts (config-root reuse across restart) passes.

Two fixes for environment-pane e2e failures where the Environment tab
resolved as selected but "not visible" for entire CI runs:

- PaneManager.endZoomIfActive (the automation bridge's layout.reset) now
  also restores quadrants left in WindowFrame-level MAXIMIZE state, which
  the zoom tracking never sees -- e.g. the R Notebook preview's
  EnsureHeightEvent escalating to MAXIMIZE on short CI displays.

- The desktop e2e fixture gives each launch its own RSTUDIO_DATA_HOME
  under its config root instead of sharing one across all workers, so
  persisted client state (windowlayoutstate.pper et al.) can no longer
  leak between specs or poison fresh retry workers. The seeded Posit
  Assistant build is linked into each per-spec data home.

Addresses #17952
@kevinushey kevinushey added this to the Blue Plumbago milestone Jun 12, 2026
@github-actions

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
367 0 9 3
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · macos-26 ARM64 · commit 978582b0dafce0cb046b51f5e727730c4d28ddb3 · Run #233

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.

e2e: leaked pane-maximize state hides the Environment tab and poisons later launches

1 participant