Skip to content

e2e: Re-enable the Server-mode tests skipped in PR #17939 #18064

Open

Description

@ronblum

PR #17939 brought RStudio Server (Ubuntu 24) under the E2E Playwright
automation lifecycle. To land the suite green, several tests that fail on
Server were tagged @desktop_only (each marked with a TODO(aza) comment)
because the failures look test-side rather than product-side. This issue
tracks re-enabling them on Server. It replaces the per-test follow-up TODOs;
each TODO(aza) comment can be updated to reference this issue.

The skips fall into three groups by suspected cause.

Group 1 -- post-restart console output unreadable on Server

After an R session restart on Server, the post-restart console fills with
escape-sequence glyphs (long runs of ה/X) instead of the marker the
helper prints via afterRestart's cat(), so the console text match never
succeeds. All three suites share ConsolePaneActions.restartSession() and
read the restart result off console text.

Note for session_restart.test.ts: it guards #14636 (variables defined
before a restart survive into the after-restart command). The skip comment
attributes the failure to save_workspace=never, but that preference is set
on Desktop too (where the test passes), so it is likely not the cause. When
re-enabling, confirm workspace survival through a sentinel file
(file.exists) or the automation bridge rather than scraping console text,
so the harness fix also rules out a genuine Server-side regression.

Group 2 -- GWT null dereference during preview consent

  • e2e/rstudio/tests/panes/editor/sql_preview_security.test.ts
  • e2e/rstudio/tests/panes/editor/r2d3_preview_security.test.ts (already
    test.fixme on Server)

The preview consent and render flow raises an uncaught client exception
(Cannot read properties of null, obfuscated symbol WXc on Linux Server
and VXc on Windows CI). This looks like a src/gwt/ product issue rather
than a test issue; decoding the stack needs a build with -DGWT_STYLE=PRETTY.
For consistency, sql_preview_security.test.ts would ideally use the same
test.fixme(... mode === 'server') treatment as r2d3_preview_security.test.ts
so it stays visible in reports and re-enables automatically once the GWT bug
is fixed.

Group 3 -- other Server-specific UI timing

  • e2e/rstudio/tests/panes/debugger/debugger.test.ts -- clicking a call
    frame to switch the Environment context.
  • e2e/rstudio/tests/preferences/global_prefs_panels.test.ts -- the Python
    interpreter selector modal does not open within the timeout on Server.
  • e2e/rstudio/tests/projects/project_id.test.ts -- the second
    restartSessionWithSentinel (after clearing project_user_data_directory)
    times out waiting for window.rstudio.ready. Server logs show the session
    restarts cleanly (event stream up ~2s, client_init 1-3s), so this is the
    bridge readiness signal not re-arming across a Server restart, not a slow or
    failed session -- distinct from Group 1's console-text problem. Intermittent;
    the first restart in the same test passes, and Desktop passes.

Done when

See PR #17939.

Metadata

Metadata

Assignees

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions