From 598e7437f27f1ac64d9b935bf411f0d99e4d5efb Mon Sep 17 00:00:00 2001 From: Sergey Matyunin Date: Mon, 24 Aug 2026 08:55:38 +0300 Subject: [PATCH] test: isolate optimize fixture from pending geometry write Issue: #278 User-Visible: no --- demo/smoke_grid_snap.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/demo/smoke_grid_snap.mjs b/demo/smoke_grid_snap.mjs index 3584501b..84ce9054 100644 --- a/demo/smoke_grid_snap.mjs +++ b/demo/smoke_grid_snap.mjs @@ -158,6 +158,13 @@ const out = await page.evaluate(async () => { // ---- 2) «Оптимизировать планы» ----------------------------------------- c._setMode('view'); await c.updateComplete; + // The preceding real editor gestures schedule a physical config write. + // Finish it before replacing the whole server snapshot with the next + // synthetic fixture: production adoption does this at a revision boundary, + // while a direct private-field assignment cannot invalidate #278's pending + // exact-candidate approval by itself. + if (c._saveConfigDebounced.pending()) c._saveConfigDebounced.flush(); + await c._writeChain; // a deliberately detuned fixture: a third of a step off, everywhere const D = 1 / GRID_N / 3; const FIX = { spaces: [{