Skip to content

e2e: intermittent flake in layout-zoom, packages-pane, and shinytest2 Playwright tests #17819

Open

Description

@kevinushey

Summary

Several Playwright E2E tests flaked on CI (observed on the bugfix/dataviewer-summary-perf branch, whose diff is entirely unrelated -- data-viewer work plus additive Shell/desktop changes). All of them pass reliably when run locally. Filing this to track flake investigation / de-flaking later.

Tests observed flaking

  • e2e/rstudio/tests/panes/layout/tabs.test.ts:78 -- Workbench tabs > layoutZoomEnvironment zooms the environment pane and toggles back
  • e2e/rstudio/tests/panes/packages/packages_pane.test.ts:51 -- Packages pane > checkbox reflects loaded state when attaching and detaching DBI
  • e2e/rstudio/tests/panes/packages/packages_pane.test.ts:99 -- Packages pane > shows correct initial checkbox state for an always-attached base package
  • e2e/rstudio/tests/projects/shinytest2.test.ts:129 -- shinytest2 integration > shinyCompareTest ... (Playwright already bucketed this as flaky; passed on retry)

CI failure signatures

  • layoutZoomEnvironment: expect(received).toBe(true) timed out after 5000ms waiting on the predicate.
  • packages-pane tests: checkbox visibility / checked-state timeouts.
  • shinytest2: openProject ... did not become "<...>.Rproj" within 60000ms -- a project-open timeout (classic CI-load flake).

The CI reporter output also appeared tangled (the "Error Context" artifact path for the tabs.test.ts failure pointed at a packages-pane directory), another sign of an unstable run rather than a real regression.

Local reproduction attempt

Ran all three hard failures locally via npm run test:desktop-dev (dev desktop build):

3 passed (15.1s)
  ok tabs.test.ts:78          layoutZoomEnvironment zooms the environment pane and toggles back (349ms)
  ok packages_pane.test.ts:51 checkbox reflects loaded state when attaching and detaching DBI (1.6s)
  ok packages_pane.test.ts:99 shows correct initial checkbox state for an always-attached base package (133ms)

Follow-up

  • Investigate whether these are load/timing-sensitive on CI workers and harden the waits (the affected assertions are visibility / checked-state / pane-geometry driven).
  • Review the 60s project-open timeout in shinytest2 for a more robust readiness signal.

Activity

  1. added
    new
    on Jun 2, 2026
  2. added theissue type on Jun 2, 2026
  3. added this to the Blue Plumbago milestone on Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

automationbugnew

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions