refactor: remove manual refresh and search controls
ci / gitleaks (push) Successful in 8s
ci / docker (push) Successful in 7m17s

This commit is contained in:
2026-09-19 21:15:23 +08:00
parent 0cf1c49094
commit 4973d56a64
29 changed files with 244 additions and 860 deletions
+3 -3
View File
@@ -161,7 +161,6 @@ test('settings match the approved paper-ledger geometry and action hierarchy', a
const sectionHeaders = [...page.querySelectorAll<HTMLElement>('.settings-group > header')]
const rows = [...page.querySelectorAll<HTMLElement>('.settings-row')]
const menu = main.querySelector<HTMLElement>('.topbar > .icon')!.getBoundingClientRect()
const refresh = main.querySelector<HTMLElement>('.settings-refresh')!.getBoundingClientRect()
const rect = page.getBoundingClientRect()
const mainRect = main.getBoundingClientRect()
return {
@@ -171,7 +170,7 @@ test('settings match the approved paper-ledger geometry and action hierarchy', a
headingSize: getComputedStyle(heading).fontSize,
sectionHeights: sectionHeaders.map(header => header.getBoundingClientRect().height),
rowHeights: rows.map(row => row.getBoundingClientRect().height),
controlsOverlap: !(menu.right <= refresh.left || refresh.right <= menu.left || menu.bottom <= refresh.top || refresh.bottom <= menu.top),
menuWidth: menu.width,
}
})
expect(layout.bodyOverflow).toBe(0)
@@ -188,7 +187,8 @@ test('settings match the approved paper-ledger geometry and action hierarchy', a
}
expect(layout.sectionHeights.every(height => height === 44)).toBeTruthy()
expect(layout.rowHeights.every(height => height >= (isMobileContract ? 64 : 62))).toBeTruthy()
expect(layout.controlsOverlap).toBe(false)
expect(layout.menuWidth).toBeGreaterThanOrEqual(44)
await expect(page.getByRole('button', { name: /刷新|搜索/ })).toHaveCount(0)
const exportButton = page.getByRole('button', { name: '导出 ZIP' })
const fileInput = page.locator('input[type=file]')