fix(app): Lot F review polish (tests, drawer default)

Measure kept as a canvas-width annotation, no console.log; positive
two-frame wait replaces the fixed sleep; 64rem listener asserted
absent in the editor; drawer default read from DEFAULT_SHELL; long
test lines wrapped.
This commit is contained in:
bchanot committed 2026-11-08 19:29:36 +01:00
1 parent 580ff28214
commit 62fb8dc7b8
3 files changed
+31 -9

No files matched your search

+7 -2
View File
@@ -274,7 +274,10 @@ test.describe('editor shell, sidebar from 1 280 px (F)', () => {
scrollWidth: document.documentElement.scrollWidth,
clientWidth: document.documentElement.clientWidth,
}))
console.log(`F-measure ${width}px canvas=${canvas?.width} ${JSON.stringify(scroll)}`)
test.info().annotations.push({
type: 'canvas-width',
description: `${canvas?.width}px at ${width}px`,
})
return scroll
}
@@ -302,7 +305,9 @@ test.describe('editor shell, sidebar from 1 280 px (F)', () => {
await menu(page).click()
await expect(drawer(page)).toBeVisible()
await page.setViewportSize({ width: 1279, height: 800 })
await page.waitForTimeout(300)
await page.evaluate(
() => new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done))),
)
await expect(drawer(page)).toBeVisible()
await page.setViewportSize({ width: 1280, height: 800 })
await expect(drawer(page)).toBeHidden()