feat(workbench): add expense stats detail modal
This commit is contained in:
23
web/tests/expense-stats-detail-modal.test.mjs
Normal file
23
web/tests/expense-stats-detail-modal.test.mjs
Normal file
@@ -0,0 +1,23 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import test from 'node:test'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
const modal = readFileSync(
|
||||
fileURLToPath(new URL('../src/components/business/ExpenseStatsDetailModal.vue', import.meta.url)),
|
||||
'utf8'
|
||||
)
|
||||
|
||||
test('expense stats detail modal exposes distribution, processing time and operation detail sections', () => {
|
||||
assert.match(modal, /Expense Operation Details/)
|
||||
assert.match(modal, /历史报销费用分布/)
|
||||
assert.match(modal, /单据处理时间/)
|
||||
assert.match(modal, /系统操作详情/)
|
||||
assert.match(modal, /ElDialog/)
|
||||
assert.match(modal, /ElTag/)
|
||||
assert.match(modal, /distributionRows/)
|
||||
assert.match(modal, /processingRows/)
|
||||
assert.match(modal, /operationRows/)
|
||||
assert.match(modal, /--expense-detail-percent/)
|
||||
assert.match(modal, /统计口径来自当前工作台已加载的个人单据/)
|
||||
})
|
||||
Reference in New Issue
Block a user