feat(expenses): show unified expense event timeline
This commit is contained in:
@@ -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;/)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user