Repository navigation
test(ui-test): wait for what a step needs, act once - #112
Merged
Merged
Conversation
3 tasks
Waits polled until a timeout swallowed every failure, and several interactions were replayed on a timer: Send clicks, stripe clicks, commands that open editors. A replayed action can land twice, and a swallowed failure hides why a wait timed out. One shared wait now polls observations only. It retries the driver's lookup timeouts, components that went away and expired references, keeps the last value and failure for the timeout message, and lets anything else fail at once. Waits for the extension host or an extension to start opt in to retrying startup errors as well. Actions run once and their result is awaited. Shortcuts wait for the frame and the page's element to have focus first. The colour picker is driven through its hex field rather than its initial focus. The notebook timer accepts a decimal comma. Strict timing budgets only apply with -PuiTestPerformance=true, and UI tests run serially. A failed workbench test saves the UI hierarchy beside the IDE logs. Refs #108
BartvHelvert
force-pushed
the
fix/ui-test-stability
branch
from
November 7, 2026 13:49
ce01f09 to
b359a9c
Compare
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Makes the split-mode UI tests wait for the state each step needs and perform each action once,
instead of replaying actions on a timer or swallowing every failure while polling.
awaitProbeValue, polls observations only. It retries the driver's lookuptimeouts, components that went away and expired driver references, keeps the last value and
failure for the timeout message, and lets any other failure through at once. Waits for the
extension host or an extension to start pass
retrying = ::isStartupFailure, sinceexecuteCommandForTestthrows while the host starts. The per-class copies of the wait are gone.result is awaited, so a slow acknowledgement can no longer produce a second action.
element to have focus. The client frame's startup focus request is repeated (it's idempotent)
for up to 30 s.
focus initially.
-PuiTestPerformance=true. Theloads themselves are still checked on every run.
hierarchy to
<test>-probe/, which CI already uploads.Preserves master's switcher popup activation and three editor round trips from #104.
Fixes #108
How it was tested
ProbeWaitTest(new, 9 tests): retry, timeout cause, startup retry, cancellation, null values. All pass.Full
:ui-test:testin WSL/Xvfb on the branch rebased onto master: 57 tests, 2 failed.master's version, which test(ui-test): choose switcher items without key input #104 owns.
the strip between cells adds a code or markdown cell therefailed once: Escape didn't renderthe markdown cell (last observed
[# Top, one, mid, two]). This branch doesn't touch that code.Rerun of
SplitModeNotebookTestandSplitModeCustomEditorTestafter the revert: 13/13 and 6/6 pass.Not run: Windows and macOS UI runs. CI will cover them.
Rebased onto master
989aec7aatb359a9c1, resolving the switcher import conflict while retainingPopupUtilRefactivation and the three round trips from test(ui-test): choose switcher items without key input #104.After rebase:
ProbeWaitTestpasses (9 tests). The focused switcher UI run compiles but fails before the scenario, waiting for the client's frame to gain focus under local WSL/Xvfb; the sequential rerun has the same startup failure. Rebased CI run 42378693332 passed all three unit/integration jobs, plugin build/verification, both Ubuntu UI shards and Windows UI shard 1. Windows UI shard 2 failed only the switcher scenario (the file shown as text, tracked in reopened Custom editor switcher UI test leaves its selected popup item open #103). No full local suite rerun for the import-only conflict resolution.Checklist
A new feature has a UI test.No feature; test-only change.No product behaviour changed;docs/is updated where behaviour changed,docs/status.mdespecially.src/test-extensions/README.mdis updated.Third-party material keeps its notice and is listed inNone added.NOTICE.md.