Skip to content

e2e: poll the satellite editor and the tab indicator geometry - #18805

Merged
kevinushey merged 1 commit into
mainfrom
test/e2e-satellite-editor-and-tab-strip-flakes
Sep 13, 2026
Merged

kevinushey merged 1 commit into
mainfrom
test/e2e-satellite-editor-and-tab-strip-flakes

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Test-only hardening for the two linux flakes in PR #18802's e2e run (34712089464). Neither is a product regression from that PR: the first predates it and the second is a snapshot read racing a scroll animation.

spelling_language_switch "clearing a project dictionary rechecks an open detached editor"

Red on both attempts on linux-desktop (every run since #18766) and, in this run, on linux-server shard 2 as well. The traces show the satellite page event and then, ~70ms later:

Error: page.evaluateHandle: Error: No Ace editor found containing marker: The colour
    at AceEditor.editorHandle (e2e/rstudio/pages/ace_editor.page.ts:112)

waitForLoadState('domcontentloaded') is satisfied by the popup's initial document, well before GWT mounts the editor. The marker-based lookup throws until then, and expect.poll propagates a throw instead of retrying it (it only re-polls matcher mismatches). Wrapped the check in expect(async () => ...).toPass() so the throw is retried until the editor is up.

highlight_active_tabs "selection preserves tab widths and filename truncation"

Flaky on linux-server (passed on retry): the indicator came back position: absolute where the test expects fixed. The failure screenshot shows the tab strip scrolled. DocTabLayoutPanel.ensureSelectedTabIsVisible animates the strip when a partly hidden tab is selected, and the scroll listener keeps docTabPanelClipped (the absolute variant) on the panel until the tab is fully in view, so a one-shot geometry read can land mid-animation. expectHighlight now polls the geometry with toPass until it settles; the assertions themselves are unchanged.

Verified with npm run typecheck and both specs on desktop-dev against the worktree's ant draft build (14 passed).

Two linux CI flakes from the PR #18802 run (34712089464):

- spelling_language_switch "rechecks an open detached editor" looked up
  the satellite's Ace editor right after 'domcontentloaded', which is the
  popup's initial document -- GWT mounts the editor later. The lookup
  throws until then, and expect.poll propagates a throw instead of
  retrying, so the test died ~70ms after the popup opened. Red on
  desktop-linux since #18766 and now on linux-server too. Poll with
  toPass so the throw is retried.

- highlight_active_tabs read the selected tab's indicator geometry once.
  Selecting a partly hidden tab animates the strip to reveal it, and
  DocTabLayoutPanel keeps the clipped (position: absolute) variant until
  that scroll settles, so a one-shot read could see 'absolute' where the
  test expects 'fixed'. Poll the geometry until it settles.
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

1 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
2905 1 195 6
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 732 0 38 2
✅ desktop-macos 729 0 42 2
✅ desktop-windows 736 0 41 1
❌ server-linux 678 1 44 1
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

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


All platforms - commit 0a3d054017c7baf99ac325eff1abb66315c5706f - Run #979

@kevinushey
kevinushey merged commit 249cf7a into main Sep 13, 2026
33 of 34 checks passed
@kevinushey
kevinushey deleted the test/e2e-satellite-editor-and-tab-strip-flakes branch September 13, 2026 17:26

This branch was previously deployed

1 inactive deployment
e2e-playwright — 0a3d0540 Deployed Sep 13, 2026 by kevinushey via windows / e2e-desktop-windows (3) #979
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.

1 participant