feat(expenses): show unified expense event timeline

This commit is contained in:
caoxiaozhu
2026-07-13 16:58:51 +08:00
parent a616b30cb2
commit 22669a9071
12 changed files with 944 additions and 7 deletions

View File

@@ -7,8 +7,8 @@ const detailStyles = readFileSync(
fileURLToPath(new URL('../src/assets/styles/views/travel-request-detail-view.css', import.meta.url)),
'utf8'
)
const detailTemplate = readFileSync(
fileURLToPath(new URL('../src/views/TravelRequestDetailView.vue', import.meta.url)),
const progressTemplate = readFileSync(
fileURLToPath(new URL('../src/components/travel/TravelRequestProgressCard.vue', import.meta.url)),
'utf8'
)
const responsiveStyles = readFileSync(
@@ -31,8 +31,8 @@ test('detail hero facts keep document number and date on one row on laptop scree
})
test('reimbursement progress title and long linked application status are compact', () => {
assert.match(detailTemplate, /isApplicationDocument \? '申请进度' : '报销进度'/)
assert.doesNotMatch(detailTemplate, /差旅进度/)
assert.match(progressTemplate, /isApplicationDocument \? '申请进度' : '报销进度'/)
assert.doesNotMatch(progressTemplate, /差旅进度/)
assert.match(detailStyles, /\.progress-step-status \{[\s\S]*width:\s*100%;[\s\S]*max-width:\s*136px;[\s\S]*min-width:\s*0;/)
assert.match(detailStyles, /\.progress-step-status \{[\s\S]*white-space:\s*nowrap;[\s\S]*overflow:\s*hidden;[\s\S]*text-overflow:\s*ellipsis;/)
})