From efed52440d8bf1b57bd5c7268bce8968f924d663 Mon Sep 17 00:00:00 2001 From: Steffen Becker Date: Thu, 3 Sep 2026 23:30:32 +0200 Subject: [PATCH] test: the smoke run lets the autosave drain before it writes the key by hand Leaving the page now flushes a pending autosave, which overwrote the document the balloon leg had just put into storage. --- tests/smoke/run.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/smoke/run.mjs b/tests/smoke/run.mjs index 112e51c..3e0a571 100644 --- a/tests/smoke/run.mjs +++ b/tests/smoke/run.mjs @@ -92,6 +92,9 @@ try { // Margin balloons: every card's content stays inside its box and the column inside the // page. An unwrapped button row once pushed "Edit" clean out of the balloon, and a // comment of a few paragraphs pushed the cards under it off the sheet. + // Leaving the page flushes a pending autosave over the key; let the debounce drain + // before the key is written by hand. + await page.waitForTimeout(1500); await page.evaluate(() => { const p = (text) => ({ type: 'paragraph', content: [{ type: 'text', text }] }); const m = (text, mark) => ({ type: 'paragraph', content: [{ type: 'text', text, marks: [mark] }] });