feat: add local inbox and links tabs
This commit is contained in:
@@ -144,6 +144,14 @@ async function runReadyScenario(cdp, url) {
|
||||
await clickText(cdp, '.inbox-header .btn', 'Вставить из буфера')
|
||||
await assertText(cdp, 'example.test', 'inbox: clipboard URL captured')
|
||||
await assertText(cdp, 'Ссылка', 'inbox: clipboard URL kind visible')
|
||||
await clickInboxItemButton(cdp, 'example.test', 'Разложить')
|
||||
await waitForSelector(cdp, '.modal input[type="text"]')
|
||||
await setInputValue(cdp, '.modal input[type="text"]', 'Smoke')
|
||||
await waitForSelector(cdp, '.assign-search-result')
|
||||
await clickText(cdp, '.assign-search-result', 'Smoke Project')
|
||||
await clickText(cdp, '.modal-actions .btn', 'Разложить')
|
||||
await waitForGone(cdp, '.modal-overlay')
|
||||
await assertEval(cdp, `!document.querySelector('.inbox-screen')?.innerText.includes('example.test')`, 'inbox: assigned link leaves inbox')
|
||||
await emitDroppedFiles(cdp, ['/tmp/smoke-drop-folder'])
|
||||
await assertText(cdp, 'smoke-drop-folder', 'inbox: dropped folder captured')
|
||||
await assertText(cdp, 'Перетаскивание', 'inbox: dropped source visible')
|
||||
@@ -174,7 +182,7 @@ async function runReadyScenario(cdp, url) {
|
||||
await clickText(cdp, '.tree-label', 'Smoke Project')
|
||||
await waitForSelector(cdp, '.tabs')
|
||||
await assertText(cdp, 'Smoke Project', 'node: selected project visible')
|
||||
await assertEval(cdp, `document.querySelectorAll('.tab').length === 6`, 'node: all primary tabs rendered')
|
||||
await assertEval(cdp, `document.querySelectorAll('.tab').length === 8`, 'node: all primary tabs rendered')
|
||||
await screenshot(cdp, 'node-overview.png')
|
||||
|
||||
await clickText(cdp, '.tab', 'Заметки')
|
||||
@@ -195,6 +203,9 @@ async function runReadyScenario(cdp, url) {
|
||||
await click(cdp, '.back-btn')
|
||||
await assertText(cdp, 'brief.md', 'files: back button returns to parent folder')
|
||||
|
||||
await clickText(cdp, '.tab', 'Ссылки')
|
||||
await assertText(cdp, 'example.test', 'links: resolved link visible')
|
||||
|
||||
await clickText(cdp, '.tab', 'Действия')
|
||||
await assertText(cdp, 'Deploy smoke', 'actions: action card visible')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user