Skip to content

[3.0] e2e: read the workspace row's description from the DOM, not visible text - #2365

Open
louis-johnston-db wants to merge 1 commit into
release/3.xfrom
fix/e2e-flake-auth-166e89
Open

louis-johnston-db wants to merge 1 commit into
release/3.xfrom
fix/e2e-flake-auth-166e89

Conversation

@louis-johnston-db

Copy link
Copy Markdown
Contributor

Changes

  • src/utils/configuration.ts: a new workspaceConnectionDescription() reads the Workspace connection row's description from its textContent, not from getDescription() (visible text). On a selected row, the inline actions can clip the description out of view, and the visible text is then empty. waitForLogin and waitForWorkspaceConnection use it. They wait for the same values as before.

Tests

  • yarn test:e2e:spec auth on the mock, repeated, with no added latency (the setup where the flake showed).
  • yarn oxfmt --check on the changed file, and yarn typecheck.

Evidence:

  • Found on the mock, not seen on the integration CI in the last 21 days: auth passed 6 of 10 stress runs at 2484c2a.
  • Mock repro (not part of this change; src/auth.e2e.ts): failed 10 of 10 runs without the fix, 0 of 10 with it.
  • The touched specs on the mock under CI-like load (a 1024x768 screen, two CPUs, latency on every other run): 20 of 20 runs passed. The specs sharing the changed helpers: 35 of 38 passed.
  • yarn check and yarn typecheck: passed.

This pull request and its description were written by Isaac.

…ible text

waitForLogin and waitForWorkspaceConnection read the Workspace connection row's description as WebDriver visible text. After the spec selects that row, VS Code's inline actions can clip the description fully out of view, so the read returned "" even after the profile switch had finished. The helpers now read the description span's textContent, which doesn't depend on whether the span is clipped. They still wait for the same profile text.

Co-authored-by: Isaac <no-reply@databricks.com>

This branch was previously deployed

1 inactive deployment
test-trigger-is — a1128b67 Deployed Nov 30, 2026 by louis-johnston-db via Trigger Tests #2637
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant