You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
e2e: leaked pane-maximize state hides the Environment tab and poisons later launches #17952
On CI, all five panes/environment/environment_pane.test.ts tests can fail with the Environment tab resolving as aria-selected="true" but timing out as "element is not visible" -- including in fresh retry workers, deterministically for the rest of the run (seen on the macOS desktop e2e runs for #17946 and the data-viewer PR, and matching the recent scheduled-run failures).
Root cause, in two parts:
window.rstudio.layout.reset() (and so the per-test reset) does not cover WindowFrame-level pane maximize.PaneManager.endZoomIfActive only checks the zoom tracking (maximizedWindow_ / maximizedTab_ / zoomed column). A pane can also be maximized through the WindowFrame state machine -- the pane-header min/max buttons, or EnsureHeightEvent escalating to MAXIMIZE when the requested height doesn't fit. That is exactly what the R Notebook preview does on CI runners, whose ~645px-tall work area is too short for the Viewer's ensure-height request: TabSet2 ends up MAXIMIZE, TabSet1 ends up MINIMIZE, and TabSet1's real tab elements (including #rstudio_workbench_tab_environment) are hidden behind the minimized facsimile strip.
The e2e desktop fixture shared one RSTUDIO_DATA_HOME across all workers. The maximize state persists via client state (data-home/pcs/windowlayoutstate.pper), so once one spec leaked it, every subsequent launch in the run -- including fresh retry workers -- restored the broken layout at startup.
Failure screenshots show the leftover notebook preview maximized in the Viewer with TabSet1 collapsed to its header strip, and the retry workers (fresh app launches, empty console) coming up in the same state.
Activity
clear pane maximize state in e2e resets; isolate per-spec data homes (#…