SIGN IN SIGN UP

test(frontend): fix flaky sidebar typeahead wait in connect-tools spec (#14691)

test(frontend): fix flaky sidebar typeahead wait

The "connect tools" spec waited only 1000ms for the sidebar rows to
appear after typing. That budget covers the 300ms search debounce plus
the Fuse index rebuild and the sidebar re-render, which leaves almost no
headroom: a local macOS run already spends 400-840ms there, and on the
Windows nightly runner the same wait measured 1193ms and 1293ms and
failed both attempts. A sibling spec doing the identical search with a
3000ms budget passed in 388ms on that same runner, confirming a timing
race rather than a missing component.

Replace both hand-rolled search-and-drag blocks with the shared
addComponentFromSidebar helper, which uses the standard component-mount
timeout and asserts the node count after each drop, and wait for the
tool-mode button, the toolset handle, and the resulting edge count with
web-first assertions instead of a bare count() snapshot.
C
Cristhian Zanforlin Lousa committed
a22f87df0e83c9b9f0af0437c5fd795b18a4d8fb
Parent: edf5862
Committed by GitHub <noreply@github.com> on 8/21/2026, 12:39:31 PM