Files
meshcore-analyzer/tests/e2e
n30nexandn30nex 17c1e3d1b3 test(live): wait for drag controls to finish initializing (#2423)
Partial fix for #1995. The Live page displays its panel headers before
it finishes loading map configuration and registering the drag handlers.
The browser test could drag the feed during that interval and then fail
its position, storage and reload checks. Its short-click check could
also pass before a handler saw the gesture.

After each reload, the suite waits for the visible header and the
current page’s drag manager. It hovers the header, presses the mouse,
checks that the intended panel accepted the press, and measures movement
from the actual press coordinates. This removes three fixed waits.

TDD exemption: pure test-harness repair. The only altered file is
`tests/e2e/test-drag-manager-e2e.js`. All seven scenarios and eleven
original assertions remain. The additional ownership check prevents a
click on the map canvas from satisfying the legend’s dead-zone test.

Browser verified: `http://localhost:15027/#/live`. Delaying the actual
map configuration response by 2.5 seconds reproduced three assertion
failures on upstream. The final candidate passed 7/7 under normal and
delayed loading. Blocking a genuine legend press made the old check pass
incorrectly. The strengthened check failed precisely that scenario, with
the other six passing.

The earlier #2419 CI failure showed the same three symptoms. That run
did not record initialization timing.

---------

Co-authored-by: n30nex <6686206+n30nex@users.noreply.github.com>
2026-11-18 18:16:18 +01:00
..