From 58a74acbf6a49fc229d08180027152104ed87b7c Mon Sep 17 00:00:00 2001 From: mirivlad Date: Fri, 5 Jun 2026 01:07:51 +0800 Subject: [PATCH] test: capture inbox and trash gui smoke --- scripts/check-gui-render.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/check-gui-render.mjs b/scripts/check-gui-render.mjs index 421468b..db6688c 100755 --- a/scripts/check-gui-render.mjs +++ b/scripts/check-gui-render.mjs @@ -136,12 +136,14 @@ async function runReadyScenario(cdp, url) { await clickText(cdp, '.nav-item', 'Неразобранное') await assertText(cdp, 'Неразобранное', 'inbox: system view opens') await assertText(cdp, 'Inbox Smoke Item', 'inbox: unassigned item visible') + await screenshot(cdp, 'inbox.png') await clickText(cdp, '.inbox-item-actions .btn', 'Открыть') await assertText(cdp, 'Inbox Smoke Item', 'inbox: item opens from list') await clickText(cdp, '.nav-item', 'Корзина') await assertText(cdp, 'Trash Smoke Folder', 'trash: deleted node visible') await assertText(cdp, 'node-trash_Trash-Smoke-Folder', 'trash: physical entry visible') + await screenshot(cdp, 'trash.png') await clickText(cdp, '.tree-label', 'Smoke Project') await waitForSelector(cdp, '.tabs') @@ -233,7 +235,7 @@ async function runReadyScenario(cdp, url) { await assertEval(cdp, `document.documentElement.scrollWidth <= window.innerWidth + 2`, 'mobile: no horizontal page overflow') await screenshot(cdp, 'mobile-main.png') - console.log('OK: ready app smoke covers settings, workspace, tabs, files, journal, activity, create modal, mobile viewport') + console.log('OK: ready app smoke covers settings, inbox, trash, workspace, tabs, files, journal, activity, create modal, mobile viewport') } async function navigate(cdp, url) {