优化
This commit is contained in:
@@ -16,6 +16,18 @@ function activeCustomer(id: string, tenantName: string, legalName: string | null
|
||||
}
|
||||
|
||||
describe('InboundTaskList measurement scope', () => {
|
||||
it('uses supplied order status tabs in the toolbar and keeps standalone mode titles as fallback', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
const toolbar = source.match(/<template #toolbar-start>([\s\S]*?)<\/template>/)?.[1]
|
||||
const filters = source.match(/<template #filters>([\s\S]*?)<\/template>/)?.[1]
|
||||
expect(toolbar).toContain('<slot name="status-tabs"><h1>')
|
||||
expect(toolbar).toContain("title || (isReview ? '测量数据审核' : '订单测量')")
|
||||
expect(toolbar).toContain('</h1></slot>')
|
||||
expect(filters).toContain('<QueryToolbar')
|
||||
expect(filters).not.toContain('name="status-tabs"')
|
||||
expect(source).toContain('<template v-if="isReview && access.can(actionPermission)" #toolbar-actions>')
|
||||
})
|
||||
|
||||
it('supports selecting only pending measurement reviews for batch approval', () => {
|
||||
const source = readFileSync(resolve('src/modules/inbounds/components/InboundTaskList.vue'), 'utf8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user