This commit is contained in:
2026-08-14 14:27:03 +08:00
parent 724848feb6
commit a81af4a664
64 changed files with 961 additions and 176 deletions
@@ -28,6 +28,13 @@ describe('CustomerAuditLogsPanel', () => {
expect(wrapper.text()).toContain('编辑客户')
})
it('shows the server total instead of the current page row count', async () => {
vi.mocked(listPlatformAuditLogs).mockResolvedValue({ records: [row], page: 1, size: 20, total: 13, pages: 1 })
const wrapper = mountPanel(['platform:audit:list']); await flushPromises()
expect(wrapper.text()).toContain('共 13 条客户操作记录')
})
it('applies keyword, result and local date range only after search', async () => {
const wrapper = mountPanel(['platform:audit:list']); await flushPromises()
vi.mocked(listPlatformAuditLogs).mockClear()