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.
This commit is contained in:
Steffen Becker committed 2026-09-04 19:30:12 +02:00
1 parent 0435fdf285
commit efed52440d
1 file changed
+3
+3
View File
@@ -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] }] });