From b55772b749b596ce2de7cdd99af398741c7c7738 Mon Sep 17 00:00:00 2001 From: dev Date: Fri, 4 Dec 2026 23:06:03 +0800 Subject: [PATCH] [bugfix] tests: clear the canvas tool rail when seeding the toolbar drag canvas_toolbar_topbar seeds its "Top" node at x=40 and drags it with a real pointer. At zoom 0.5 the canvas tool rail covers that node's center, so the pointer press lands on a rail button, nothing is selected and the toolbar never appears. The case then times out waiting for the toolbar, which is the failure the browser (isolated) lane reports on main; the unmodified test reproduced it locally at the same line on a fresh fixture. Seed the node at x=240 so its center clears the rail at every zoom the case exercises. The intent is unchanged: the toolbar must sit below the top bar after a drag. Co-Authored-By: Claude Code --- tests/browser/canvas_toolbar_topbar.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/browser/canvas_toolbar_topbar.mjs b/tests/browser/canvas_toolbar_topbar.mjs index 182bc3f4b..fa969e2f5 100644 --- a/tests/browser/canvas_toolbar_topbar.mjs +++ b/tests/browser/canvas_toolbar_topbar.mjs @@ -36,8 +36,7 @@ async function seed(browser, zoom) { }); const suffix = crypto.randomUUID().slice(0, 8); const first = createDocument(`Toolbar A ${suffix}`); - // The same top-left placement as canvas_progressive_load's Delayed node. - const top = image("Top", 40, 20); + const top = image("Top", 240, 20); const second = image("Second", 460, 120); first.nodes = [top, second]; const other = createDocument(`Toolbar B ${suffix}`);