fix: reorder journal worklog sections

This commit is contained in:
2026-06-06 02:53:36 +08:00
parent 40c0953904
commit f88376264d
5 changed files with 48 additions and 37 deletions
+11
View File
@@ -348,6 +348,17 @@ async function runReadyScenario(cdp, url) {
await assertEval(cdp, `!document.querySelector('.journal-screen h2')`, 'journal: screen title is not duplicated inside body')
await clickText(cdp, '.journal-tab', 'Журнал работы')
await screenshot(cdp, 'journal.png')
await assertEval(cdp, `
(() => {
const summary = document.querySelector('.journal-summary');
const exportBlock = document.querySelector('.journal-export-section');
const filterBlock = document.querySelector('.journal-filter-section');
const table = document.querySelector('.journal-table-wrap');
if (!summary || !exportBlock || !filterBlock || !table) return false;
const top = (el) => el.getBoundingClientRect().top;
return top(summary) < top(exportBlock) && top(exportBlock) < top(filterBlock) && top(filterBlock) < top(table);
})()
`, 'journal: summary, export, filters, work list order')
await assertEval(cdp, `document.body.innerText.toLowerCase().includes('фильтры')`, 'journal: filter section visible')
await assertEval(cdp, `document.body.innerText.toLowerCase().includes('экспорт отчёта')`, 'journal: export section visible')