fix: show inbox capture target context

This commit is contained in:
2026-06-05 08:10:33 +08:00
parent a8df9d118c
commit 22b05f57b4
4 changed files with 22 additions and 11 deletions
+9
View File
@@ -263,6 +263,15 @@ async function runReadyScenario(cdp, url) {
await clickText(cdp, '.tab', 'Активность')
await assertText(cdp, 'Smoke activity', 'activity: per-node activity visible')
await emitDroppedFiles(cdp, ['/tmp/project-context-file.txt'])
await clickText(cdp, '.nav-item', 'Неразобранное')
await assertText(cdp, 'project-context-file.txt', 'inbox: node-context capture visible globally')
await assertText(cdp, 'Захвачено в: Smoke Project', 'inbox: global list shows capture context')
await assertText(cdp, 'Цель: Smoke Project', 'inbox: global list shows suggested target')
await clickInboxItemButton(cdp, 'project-context-file.txt', 'Удалить')
await clickText(cdp, '.overlay .btn', 'Удалить')
await assertEval(cdp, `!document.querySelector('.inbox-screen')?.innerText.includes('project-context-file.txt')`, 'inbox: node-context capture can be deleted')
await clickText(cdp, '.nav-item', 'Сегодня')
await assertText(cdp, 'Сегодня', 'today: system view opens')
await assertText(cdp, 'Smoke Project', 'today: dashboard data visible')