Skip to content

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

Closed

Description

@kevinushey

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:

  1. 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.

  2. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions